iptables not loading commands

Discussion in 'Installation/Configuration' started by alleks, Dec 29, 2010.

  1. alleks

    alleks Member

    Hi, I am trying to do some iptables rules but the rules that are more important, they won't load.

    I am trying to do

    Code:
    #iptables --table nat --append POSTROUTING --out-interface eth1 -j MASQUERADE
    #iptables --table nat --append POSTROUTING --out-interface eth2 -j SNAT --to IPE
    #echo 1 > /proc/sys/net/ipv4/ip_forward
    
    Then I type #iptables -L to see if it loads, and I get nothing. I get no errors in the syslog
     
  2. jgedeon

    jgedeon New Member

    iptables -nvL
     
  3. alleks

    alleks Member

    thank you very much jgedeon, both your advice as other I got from debian forums helped.

    #iptables -t nat -L
     

Share This Page