LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   KDE firewall configuration for gateway PC (https://www.linuxquestions.org/questions/linux-networking-3/kde-firewall-configuration-for-gateway-pc-4175428449/)

King_DuckZ 09-21-2012 05:23 PM

KDE firewall configuration for gateway PC
 
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.


All times are GMT -5. The time now is 07:15 PM.