Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Help: Transparent TOR proxy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Itzamna
n00b
n00b


Joined: 27 Apr 2009
Posts: 8
Location: Netherlands

PostPosted: Sun Jul 22, 2012 2:52 am    Post subject: Help: Transparent TOR proxy Reply with quote

Hello,

I've been trying to transparently route all my traffic through TOR, as per their guide: https://trac.torproject.org/projects/tor/wiki/doc/TransparentProxy (section "Transparently anonymizing traffic for a specific user"). However, the IPTables commands they provide always produce errors.

The following commands:

Code:

iptables -t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner anonymous -m tcp -j REDIRECT --to-ports 9040
iptables -t nat -A OUTPUT ! -o lo -p udp -m owner --uid-owner anonymous -m udp --dport 53 -j REDIRECT --to-ports 53
iptables -t filter -A OUTPUT -p tcp -m owner --uid-owner anonymous -m tcp --dport 9040 -j ACCEPT
iptables -t filter -A OUTPUT -p udp -m owner --uid-owner anonymous -m udp --dport 53 -j ACCEPT
iptables -t filter -A OUTPUT ! -o lo -m owner --uid-owner anonymous -j DROP


all produce the error message "iptables: No chain/target/match by that name.", however, 'nat' is a valid target, 'OUTPUT' is a valid chain and there are no invalid matches. I am stumped, I can't get it to work.

Can someone explain to me how to do this correctly?

Thanks in advance,

Itzamna
Back to top
View user's profile Send private message
Itzamna
n00b
n00b


Joined: 27 Apr 2009
Posts: 8
Location: Netherlands

PostPosted: Sun Jul 22, 2012 5:28 am    Post subject: Reply with quote

Never mind, I fixed it. I didn't have REDIRECT target support built into the kernel; in menuconfig it's found under Networking support --> Networking options --> Network packet filtering framework (Netfilter) --> Core Netfilter configuration.

I hope this is of help to anyone.

Regards,

Itzamna
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum