Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. sudo iptables -F
  2. sudo iptables -A INPUT -p tcp -s 109.123.74.85 --dport 27000 -j ACCEPT
  3. sudo iptables -A INPUT -p tcp -s 188.170.80.4 --dport 27000 -j ACCEPT
  4. sudo iptables -A INPUT -p tcp --dport 27000 -j REJECT
  5. sudo iptables -L
  6.  
  7. $ sudo iptables -L
  8. Chain INPUT (policy ACCEPT)
  9. target prot opt source destination
  10. ACCEPT tcp -- 109.123.74.85 anywhere tcp dpt:27000
  11. ACCEPT tcp -- 188.170.80.4 anywhere tcp dpt:27000
  12. REJECT tcp -- anywhere anywhere tcp dpt:27000 reject-with icmp-port-unreachable
  13.  
  14. Chain FORWARD (policy ACCEPT)
  15. target prot opt source destination
  16.  
  17. Chain OUTPUT (policy ACCEPT)
  18. target prot opt source destination
  19.  
  20. Chain DOCKER (0 references)
  21. target prot opt source destination
  22.  
  23. Chain DOCKER-ISOLATION (0 references)
  24. target prot opt source destination
  25.  
  26. python3 -m http.server 27000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement