Results 11 to 12 of 12
kindly find below the rules we had declared on /etc/rc.local
Code:
sudo iptables -A FORWARD -i eth0 -s 192.168.1.0/24 -j DROP
sudo iptables -A FORWARD -i eth0 -o eth0 -j ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-07-2009 #11Just Joined!
- Join Date
- Jul 2009
- Posts
- 9
kindly find below the rules we had declared on /etc/rc.local
other than this, no where we had declared any rulesCode:sudo iptables -A FORWARD -i eth0 -s 192.168.1.0/24 -j DROP sudo iptables -A FORWARD -i eth0 -o eth0 -j DROP sudo iptables -A FORWARD -d 192.168.0.0/24 -m state --state ESTABLISHED,RELATED -i eth0 -j ACCEPT sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE #sudo iptables -t nat -A POSTROUTING -j ACCEPT sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5900 -j DNAT --to-dest 192.168.0.203:5900 sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j DNAT --to-dest 192.168.0.204:80
Thanking you,
S Ganesh
- 08-10-2009 #12
Sorry for the late reply, work before life now days.
.
Your firewall rules should be in a file called iptables. What OS are you running?
Do you have any Policies set for your firewall?


Reply With Quote
