Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. Nmap scan report for test (192.168.88.65)
  2. Host is up (0.0023s latency).
  3. Not shown: 998 closed ports
  4. PORT STATE SERVICE
  5. 111/tcp open rpcbind
  6. 3306/tcp open mysql
  7.  
  8. Nmap scan report for localhost (127.0.0.1)
  9. Host is up (0.0000030s latency).
  10. Other addresses for localhost (not scanned): 127.0.0.1
  11. Not shown: 996 closed ports
  12. PORT STATE SERVICE
  13. 25/tcp open smtp
  14. 111/tcp open rpcbind
  15. 3306/tcp open mysql
  16. 8000/tcp open http-alt
  17.  
  18. root @ debian /root ### iptables -I INPUT -p tcp --dport 8000 -j ACCEPT
  19. root @ debian /root ### iptables-save
  20.  
  21. # Generated by iptables-save v1.4.21 on Mon Mar 6 10:11:58 2017
  22. *filter
  23. :INPUT ACCEPT [57:123601]
  24. :FORWARD ACCEPT [0:0]
  25. :OUTPUT ACCEPT [44:124193]
  26. -A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
  27. -A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
  28. -A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
  29. -A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
  30. -A INPUT -p tcp -m tcp --dport 8000 -j ACCEPT
  31. -A INPUT -p tcp -m tcp --dport 8000 --tcp-flags FIN,SYN,RST,ACK SYN -j ACCEPT
  32. COMMIT
  33. # Completed on Mon Mar 6 10:11:58 2017
  34.  
  35. Name: http (or any name you want)
  36. Protocol: TCP
  37. Host IP: (blank)
  38. Host Port: 8888 (or any port you want)
  39. Guest IP: (blank)
  40. Guest Port: 8000 (match your web app port)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement