ninja_retardado

iptables

Sep 11th, 2013
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Nao havera comentarios aqui
  4.  
  5. modprobe iptable_nat
  6.  
  7. iptables -F
  8.  
  9. # iptables -A OUTPUT -d acesso.serpro.gov.br -j ACCEPT
  10.  
  11. # iptables -A FORWARD -s 10.0.0.0/8 -d acesso.serpro.gov.br -j ACCEPT
  12. # iptables -A FORWARD -s acesso.serpro.gov.br -d 10.0.0.0/8 -j ACCEPT
  13.  
  14. echo 1 > /proc/sys/net/ipv4/ip_forward
  15. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Add Comment
Please, Sign In to add comment