Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Nao havera comentarios aqui
- modprobe iptable_nat
- iptables -F
- # iptables -A OUTPUT -d acesso.serpro.gov.br -j ACCEPT
- # iptables -A FORWARD -s 10.0.0.0/8 -d acesso.serpro.gov.br -j ACCEPT
- # iptables -A FORWARD -s acesso.serpro.gov.br -d 10.0.0.0/8 -j ACCEPT
- echo 1 > /proc/sys/net/ipv4/ip_forward
- iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Add Comment
Please, Sign In to add comment