Here is the output:
Code:
# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.2.11 on Sat Dec 12 08:43:17 2009
*nat
:PREROUTING ACCEPT [7:980]
:POSTROUTING ACCEPT [3:210]
:OUTPUT ACCEPT [3:210]
-A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth0 -j SNAT --to-source 10.209.47.241
COMMIT
# Completed on Sat Dec 12 08:43:17 2009
# Generated by iptables-save v1.2.11 on Sat Dec 12 08:43:17 2009
*filter
:INPUT ACCEPT [1671955:2251603990]
:FORWARD ACCEPT [444:117648]
:OUTPUT ACCEPT [871130:43232190]
COMMIT
# Completed on Sat Dec 12 08:43:17 2009
#
Code:
# service iptables status
Firewall is stopped.
Code:
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
#
Code:
# iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j SNAT --to 10.209.47.241
#iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Code:
# iptables-save
# Generated by iptables-save v1.2.11 on Tue Dec 15 08:54:10 2009
*nat
:PREROUTING ACCEPT [14821:2087637]
:POSTROUTING ACCEPT [5465:488998]
:OUTPUT ACCEPT [5460:487590]
-A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth0 -j SNAT --to-source 10.209.47.241
-A POSTROUTING -s 192.168.0.0/255.255.255.0 -o eth0 -j SNAT --to-source 10.209.47.241
COMMIT
# Completed on Tue Dec 15 08:54:10 2009
# Generated by iptables-save v1.2.11 on Tue Dec 15 08:54:10 2009
*filter
:INPUT ACCEPT [2716565380:3853194984145]
:FORWARD ACCEPT [16386:10601848]
:OUTPUT ACCEPT [1834504590:137399480879]
COMMIT
# Completed on Tue Dec 15 08:54:10 2009
Code:
# service iptables start
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: nat filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Code:
[root@bangmediasrv1 ~]# service iptables status
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- 192.168.0.0/24 0.0.0.0/0 to:10.209.47.241
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Should iptables status shows such output?