Hello, I just got my Raspberry Pi and set it to access the internet through my Sabayon laptop. After some effort I got it working, but only if I disable the firewall on KDE.
As root, I did:
Code:
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT
sysctl -w net.ipv4.ip_forward=1
Can somebody help me in configuring my firewall so that I don't have to disable it everytime I hop onto the Raspberry? Also, disabling and re-enabling the firewall tends to unset my ip_forward. Any cahnce I can tell the firewall to leave that alone?
My Raspberry is connected directly to my laptop on eth0 and is running Arch Linux.