Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # +-----------------------------+
- # | lan to the internet |
- # +-----------------------------+
- iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
- iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
- iptables -A FORWARD -p icmp -s $lan -d 0/0 -j ACCEPT
- iptables -A FORWARD -p udp -s $lan -d 0/0 --destination-port 123 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 0/0 --destination-port 443 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 0/0 --destination-port 110 -j ACCEPT
- iptables -A FORWARD -s $lan -d 196.26.201.100 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 163.203.223.142 --destination-port 110 -j ACCEPT
- #iptables -A FORWARD -p tcp -s 192.168.0.222 -d 196.41.206.253 --destination-port 110 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 163.203.223.136 --destination-port 110 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 196.41.6.141 --destination-port 110 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 74.52.65.98 --destination-port 110 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 196.25.251.250 --destination-port 110 -j ACCEPT
- iptables -A FORWARD -p tcp -s $lan -d 196.38.43.0/24 --destination-port 8443 -j ACCEPT
- # allow everything from these hosts
- iptables -A FORWARD -s 192.168.0.240 -d 0/0 -j ACCEPT
- iptables -A FORWARD -s 192.168.0.4 -d 0/0 -j ACCEPT
Add Comment
Please, Sign In to add comment