Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. iptables -P INPUT DROP
  2. iptables -P FORWARD DROP
  3. iptables -P OUTPUT ACCEPT
  4.  
  5. iptables -t filter -A INPUT -i eth1 -j ACCEPT
  6. iptables -t filter -A INPUT -m state --state NEW,ESTABLISHED -j ACCEPT
  7. iptables -t filter -A INPUT -s 3.221.199.53/32 -j ACCEPT
  8. iptables -t filter -A INPUT -s 45.25.189.90/32 -j ACCEPT
  9. iptables -t filter -A INPUT -s 18.218.161.156/32 -j ACCEPT
  10. iptables -t filter -A FORWARD -i eth1 -o eth0 -j ACCEPT
  11. iptables -t filter -A FORWARD -j ACCEPT
  12.  
  13.  
  14. iptables -t nat -A POSTROUTING -o eth0 -m policy --dir out --pol ipsec -j ACCEPT
  15. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
  16. iptables -t nat -A POSTROUTING -s 172.25.1.0/24 -j MASQUERADE
  17. iptables -t nat -A POSTROUTING -s 172.25.1.0/24 -o eth0 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement