Guest User

Untitled

a guest
Mar 19th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. -P INPUT ACCEPT
  2. -P FORWARD ACCEPT
  3. -P OUTPUT ACCEPT
  4. -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  5. -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
  6. -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
  7. -A INPUT -p icmp -j ACCEPT
  8. -A INPUT -i lo -j ACCEPT
  9. -A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
  10. -A INPUT -j REJECT --reject-with icmp-host-prohibited
  11. -A FORWARD -j REJECT --reject-with icmp-host-prohibited
  12.  
  13.  
  14. netstat -tulpn | grep 5432
  15. tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 2938/postgres
  16. tcp6 0 0 ::1:5432 :::* LISTEN 2938/postgres
Add Comment
Please, Sign In to add comment