Internet access for everyone at Etap hotel

If you are at the Etap hotel and you get “Error: The maximum number of subscribers has been reached” just find someone with Internet access that can route you and make him type this as root:

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

Then you should type (as root):

route del default gw
route add default gw route add default gw $IP_WITH_INET_ACCESS

Tip kindly provided by em :).

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.

Other Posts

Reader Comments

Your ‘route add default gw’ command has some repeated words some repeated words. (It’s also the first time I see someone appending /proc/sys/net/ipv4/ip_forward, usually it’s ‘echo 1 > …’ with a single >)

There’s an alternative command for both deleting and adding the default route, that I think is simpler:

ip route replace default via $IP_WITH_INET_ACCESS


this option is really usefull and I didn’t guess why nobody put a simple check box in the main network-config dialog box to enable/disable the masquerading feature. Yes, I am thinking about Ubuntu ;D