A
A
Artem2013-11-15 05:43:39
iptables
Artem, 2013-11-15 05:43:39

Redirecting i2p traffic to a proxy using a router on dd-wrt

Situation. Home network:.

Dir-300 router on DD-Wrt firmware; ubuntu server ; a certain number of clients - devices on completely different platforms that access the Internet through a router both over the air and over copper.

On the ubuntu server, a proxy has been raised to access the i2p network. Now, in the proxy settings on each device, you have to configure or prescribe proxy.pac :


function FindProxyForURL(url, host) {
 if (dnsDomainIs(host, ".i2p")) {
 return "PROXY 192.168.1.105:4444";
 } else {
 return "DIRECT";
 }
}

Purpose Make it so that devices do not need additional settings, and the router itself forwards i2p traffic to a proxy, the rest goes directly as before. i2p page URLs always look like vsyakaya_dlinnaya_habrakadabra.i2p

Question. Is it possible to do this? The router is on Linux and has iptables. Maybe there are some other ways?

I myself am far from administration and have been reading about iptables for 2 days now. While in the head porridge. Is it worth it to continue or am I in the wrong place?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Snow Dimon, 2013-11-15
@Snowdimon

Something like iptables -t nat -A OUTPUT -d *.i2p -p tcp --dport 80 -j DNAT --to-destination 192.168.1.105:4444

I
Ivan Gumenyuk, 2013-12-12
@Meklon

It is not safe. i2p is so good in its pure form that it cannot compromise you, for example, with a script leading to the external Internet. Ideally, nothing outside of i2p should work. Otherwise it's a security hole. What you offer has the right to exist, but anonymity here is very conditional.

D
Dmitry, 2014-07-05
@ibex

With the help of iptables it is unlikely to succeed (not so strong in it), here are a few articles that will help you think :
habrahabr.ru/post/24203
habrahabr.ru/post/143516
Privoxy + Tor (can't find it)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question