ISPConfig and Gateway

Discussion in 'Server Operation' started by Rokr, Dec 6, 2006.

  1. Rokr

    Rokr New Member

    I've fallowed The Perfect Setup - Ubuntu 6.06 LTS Server, installed ISPConfig and DHCP3 server but I'm having problems sharing the internet connection in my small office LAN.

    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward

    The above didn't help so I've installed ipmasq which has to be restarted every time after a reboot in order for the LAN computer to acces the internet

    If I install ipmasq the other computers can acces the internet but the hosted website cannot be reached from outside and only internal mail can be received. The log says that external mails are removed.
    Without ipmasq Lan computers cannot reach the internet.
    Any suggestions?
    Thank you
     
  2. falko

    falko Super Moderator ISPConfig Developer

  3. Rokr

    Rokr New Member

    This i what i did: The Perfect Setup - Ubuntu 6.06 LTS Server + ISPConfig + RoundCube + DHCP3 server.
    Yes, I want to use it as a router also. It would be great if you could add this part to your Perfect Setup Howto.
    The firewall is the one from ISPConfig.
    What do I have to do to stop ipmasq blockig the website?
    Or is there another way (without ipmasq) to share the internet connection?
    Thank you
     
  4. falko

    falko Super Moderator ISPConfig Developer

    The tutorial is for servers in a data center; they don't act as routers.

    Please disable it. Then run
    Code:
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward
    again, and if it doesn't help, reboot the system (still with ISPConfig's firewall disabled) and run
    Code:
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward
    again.

    If you use your own firewall rules with an existing firewall, it's likely that the rules interfere with each other.
     

Share This Page