Not necessarily a good approach for the real world, but a good way for the RHCE test, if they happen to ask...
[root@desktop9 sysconfig]# iptables -I INPUT 1 -i lo -j ACCEPT
[root@desktop9 sysconfig]# iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE
[root@desktop9 sysconfig]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@desktop9 sysconfig]# service iptables start
iptables: Applying firewall rules: [ OK ]
This will get you started with a iptables file which will work (and subsequently forward packets).
[root@desktop9 sysconfig]# iptables -I INPUT 1 -i lo -j ACCEPT
[root@desktop9 sysconfig]# iptables -t nat -A POSTROUTING -o br0 -j MASQUERADE
[root@desktop9 sysconfig]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@desktop9 sysconfig]# service iptables start
iptables: Applying firewall rules: [ OK ]
This will get you started with a iptables file which will work (and subsequently forward packets).
Comments
Post a Comment