LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-21-2012, 05:23 PM   #1
King_DuckZ
Member
 
Registered: Nov 2009
Location: Rome, IT
Distribution: Sabayon
Posts: 61

Rep: Reputation: 2
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewall/Gateway + Server Enrickey Linux - Newbie 14 05-18-2006 04:23 PM
MEPIS 3.3.1 Gateway Firewall TuxFreak MEPIS 3 07-07-2005 10:06 AM
Using Linux as a firewall/gateway Dovid Linux - Networking 4 04-21-2005 09:13 PM
IPFW gateway firewall Reme *BSD 1 10-30-2003 08:29 PM
Gateway/Firewall and Proxy da_tibmeister Linux - Networking 5 10-03-2003 07:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration