tkaczanowski

linux server varia

Mar 29th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #iptables
  2. sudo -i
  3. ufw allow from a.b.c.d
  4.  
  5. #list
  6. sudo iptables -L
  7.  
  8. #if you mess up things
  9. sudo iptables -L -n
  10.  
  11. #delete things
  12. sudo iptables -D 10
  13.  
  14. #kill tcp connections
  15. netstat -a | grep 254
  16. sudo tcpkill host x.y.z.254
  17.  
  18. #find tomcat port
  19. netstat -ntpl | grep java
  20. tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN 11128/java
  21. ps -ef | grep 11128
Advertisement
Add Comment
Please, Sign In to add comment