[CentOS] Using a CentOS 6 Machine as a gateway/router/home server

Sun Jun 28 19:20:25 UTC 2015
Alexander Dalloz <ad+lists at uni-x.org>

Am 28.06.2015 um 20:50 schrieb Max Pyziur:

[ ... ]

> I can't connect from the home machines directly to the Internet.
>
> I have set
> net.ipv4.ip_forward = 1
> in /etc/sysctl.conf
>
> I haven't setup the firewall yet (dangerous, I know) until I get the
> connectivity working.

Part of the firewall setup (iptables) is to configure masquerading. 
That's you issue, the missing masquerading of the traffic from the LAN 
hosts through the gateway.

> I'm obviously overlooking some other configuration settings required for
> machines inside the network being able to connect through the
> gateway/router.
>
> Thanks for any advice in advance.
>
>
> Max Pyziur
> pyz at brama.com

Alexander