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
So your Ubuntu server is acting as a router? Did you disable the old firewall (if there was one) before you tried your own firewall rules? This tutorial might be interesting for you: http://www.howtoforge.com/ubuntu6.06_firewall_gateway
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
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.