[TriLUG] Sharing WiFi through Ethernet

Joseph Mack NA3T jmack at wm7d.net
Sat Aug 16 11:21:08 EDT 2014


On Fri, 15 Aug 2014, Kevin Hunter Kesling wrote:

> So, the complete sequence on the gateway might be something like this:
>
>    $ sudo sysctl net.ipv4.ip_forward=1
>    $ sudo iptables -t nat -F
>    $ sudo iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
>    $ sudo iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT
>    $ sudo iptables -A FORWARD -m conntrack --ctstate \
>        RELATED,ESTABLISHED -j ACCEPT

I thought about this too, and this is the sort of setup I have. You have this 
sort of setup if further down the chain you have DENY for the FORWARD chain. But 
Brian posted yesterday afternoon, the output of iptables -L -n, which showed 
that FORWARD was all ACCEPT

Joe

-- 
Joseph Mack NA3T EME(B,D), FM05lw North Carolina
jmack (at) wm7d (dot) net - azimuthal equidistant map
generator at http://www.wm7d.net/azproj.shtml
Homepage http://www.austintek.com/ It's GNU/Linux!


More information about the TriLUG mailing list