Nat Gateway ??? help

Discussion in 'Server Operation' started by psykosen, Jul 16, 2009.

  1. psykosen

    psykosen New Member

    hey guys

    I have a small problem I am about to put a new lan network together in my company! it is intended that the Internet connection goes into my (DHCP, PXE, File and print) server! These works perfect but I can not get internet to work! I have tried forwarding (eth0 => eth1) with iptables and it will not work(for me:confused:)

    this is what I have tried!!


    To delete existing rules from every iptables table, execute the following commands:

    and then i type "iptables -L" i get this output
    should it not show that it forwarded from eth0 => eth1
    i'm not a guro in iptables so eny help is welcome
    i'm totaly lost there:)

    I have searched online for some days now and can not really find a solutions that works have tried this howto but without result
    searched howtoforge for iptables, forwarding etc..
    but nothing seem to work(mabe its me:( )

    looked over my log files even trail -f whill the client boots up but now errors there


    oh! i'm running Debian lenny with DHCP, PXE, File and Print server
    and it works perfect nothing there
  2. dipeshmehta

    dipeshmehta Member

    try uncommenting following line in /etc/sysctl.conf
    hope this works.

  3. psykosen

    psykosen New Member

    no it did not work but thanks any way
    it's for the first time I put such a system up so bear with me, only used linux for about 7 months

    other proposals would be nice thanx again
  4. fayax

    fayax New Member

    Try this and post the output.
    iptables -L -t nat
  5. psykosen

    psykosen New Member

    hi this is the output off iptables -L -t nat

    Chain PREROUTING (policy ACCEPT)
    target              prot opt source                 destination        
    Chain POSTROUTING (policy ACCEPT)
    target              prot opt source                 destination  
    MASQUERADE          all -- anywhere                  anywhere
    Chian OUTPUT (policy ACCEPT)
    target             prot opt source                 destination
    to me it's looks okay i meen it ACCEPTS all the way around????

Share This Page