2015-12-03
after watching the video, maybe you want to know what exactly the command does! well, I'll try to explain.
I write again the command here:
# iptables -t nat -A POSTROUTING -o wlan0 -s 192.168.2.108 -j MASQUERADE
of course this is an iptables rule which use the nat table
iptables -t nat
with this in effect, we tell iptables to manipulate the table (-t) nat
-A POSTROUTING
append (-A) to chain POSTROUTING, the following rule
-o wlan0
means that wlan0 must be the outgoing interface of the packets
-s 192.168.2.108 -j MASQUERADE
all packets which have as source address (-s) 192.168.2.108 (Xbox 360 IP)
will be masked (-j MASQUERADE) and will come out through wlan0 (-o wlan0).
for a better understanding what words like: table, chain etc.. mean, I
suggest you to read the iptables documentation.
I hope I have helped you to share your wifi connection over ethernet!