Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #iptables
- sudo -i
- ufw allow from a.b.c.d
- #list
- sudo iptables -L
- #if you mess up things
- sudo iptables -L -n
- #delete things
- sudo iptables -D 10
- #kill tcp connections
- netstat -a | grep 254
- sudo tcpkill host x.y.z.254
- #find tomcat port
- netstat -ntpl | grep java
- tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN 11128/java
- ps -ef | grep 11128
Advertisement
Add Comment
Please, Sign In to add comment