Can't set up transparent proxy on XO laptop
Thanks in advance for looking over this.
I'm trying to set up internet filtering on an OLPC XO laptop and I'm stuck at the point of configuring iptables. I have squid and dansguardian installed. I've seen this command used
by many people on the internet, but it just doesn't work for me.
-----------
bash-3.2# /sbin/iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner squid -j ACCEPT
iptables: No chain/target/match by that name
-----------
But, if I leave off the user specification it works:
-----------
bash-3.2# /sbin/iptables -t nat -A OUTPUT -p tcp --dport 80 -j ACCEPT
bash-3.2# /sbin/iptables -t nat -L OUTPUT Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- anywhere anywhere tcp dpt:http
-----------
The user squid does exist, and if I mutate the name iptables complains:
-----------
bash-3.2# /sbin/iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner sqxuid -j ACCEPT iptables v1.3.8: Bad OWNER UID value 'sqxuid' Try 'iptables -h' or 'iptables --help' for more information.
-----------
If I try with user root instead, it doesn't work
either:
-----------
bash-3.2# /sbin/iptables -t nat -A OUTPUT -p tcp
--dport 80 -m owner --uid-owner root -j ACCEPT
iptables: No chain/target/match by that name
-----------
If I try the numeric id of the user squid it doesn't work:
-----------
bash-3.2# /sbin/iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner --uid-owner 23 -j ACCEPT
iptables: No chain/target/match by that name
-----------
Although I noticed that I can stick any number in
there and get the same error.
Any help is greatly appreciated.
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Hi there,
Quoted 3 lines · P Zemlja
I'm trying to set up internet filtering...
...
bash-3.2#/sbin/iptables-t nat -A OUTPUT -p tcp
Don't filter in the nat table.
http://iptables-tutorial.frozentux.net/
--
73,
Ged.
iptables
i am planning to setup an internet gateway machine (for my LAN having private LAN IP address scheme) with proxy server so that all web traffic goes through it.
plus need to allow internal LAN machine, some limited ports to access outside the LAN (e.g POP3, DNS, SMTP, FTP etc).
how should i setup iptables to accomplish this?
probably NAT and/or forwading need to implemented, but in which sequence? or am i mixing them?
Re: iptables
Hi there,
Quoted 5 lines · On Mon, 14 Jan 2008 [email protected] wrote:
i am planning to setup an internet gateway machine (for my LAN having private LAN IP address scheme) with proxy server so that all web traffic goes through it.
plus need to allow internal LAN machine, some limited ports to access outside the LAN (e.g POP3, DNS, SMTP, FTP etc).
http://marc.info/?l=ipcop-user&m=120022492902810&w=2
--
73,
Ged.
Re: iptables
thanks, but i was looking for something to do with iptables settings directly
----- Original Message -----
From: "G.W. Haywood" <[email protected]>
To: <[email protected]>
Sent: Monday, January 14, 2008 2:17 PM
Subject: Re: iptables
Quoted 20 lines
Hi there,
Quoted 5 lines · On Mon, 14 Jan 2008 [email protected] wrote:
i am planning to setup an internet gateway machine (for my LAN having private LAN IP address scheme) with proxy server so that all web traffic goes through it.
plus need to allow internal LAN machine, some limited ports to access outside the LAN (e.g POP3, DNS, SMTP, FTP etc).http://marc.info/?l=ipcop-user&m=120022492902810&w=2
--
73,
Ged.
-
To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: iptables
Hello again,
Quoted 2 lines · On Tue, 15 Jan 2008 [email protected] wrote:
thanks, but i was looking for something to do with iptables settings directly
My feeling is that working with iptables directly isn't your best option, but if you insist:
http://iptables-tutorial.frozentux.net/
--
73,
Ged.