Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting up second router with proxy server installed
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
gothbox
n00b
n00b


Joined: 15 Mar 2005
Posts: 15
Location: Norway

PostPosted: Thu Jul 11, 2013 10:40 am    Post subject: Setting up second router with proxy server installed Reply with quote

im trying to setup a second router , to be used mostly for torrent traffic.
now i have a router 10.0.0.1 and the second one is 10.0.0.2. Is there a way to setup some kind of proxy , that really does nothing but route all traffic via 10.0.0.2.
_________________
its only wrong if you get caught
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Thu Jul 11, 2013 4:10 pm    Post subject: Reply with quote

Hi,

the only way to use multiple gateways on one box is via iproute2 and weights (to balance the traffic) or to make rules with different routing tables (like that destination or source ip and/or port should use that and that routing table).
If you've got another box (or vm), you could setup the second gateway just there and point different apps to use that proxy... But if you've got a second box anyway, you could also just start the application there to use the other route....

HTH, cheers
_________________
Power to the people!
Back to top
View user's profile Send private message
gothbox
n00b
n00b


Joined: 15 Mar 2005
Posts: 15
Location: Norway

PostPosted: Thu Jul 11, 2013 10:10 pm    Post subject: Reply with quote

ive got two boxes (one is vm, im just testing now).
routing could work, but its not optimal, i need to be able to make only some programs work via the proxy, like torrent and maybe skype. browsing and mostly all other trafic should go through the normal router.
lets say ive got 4 clients, and 3-4 programs on each client. im to lazy to change routes and iptables rules everytime ive got new shit that should connect through the proxy.

Im using dante now. works like a charm with google chrome and regular browsing . but no torrent traffic is working . i keep getting "connection timed out." and ".... 518: remote closed" in the proxy logs.

is there a program that looks like a proxy, but in reality only routes traffic to a different gateway ?
_________________
its only wrong if you get caught
Back to top
View user's profile Send private message
nativemad
Developer
Developer


Joined: 30 Aug 2004
Posts: 918
Location: Switzerland

PostPosted: Fri Jul 12, 2013 4:43 am    Post subject: Reply with quote

I would go for squid with socks enabled! -But honestly don't know if torrent works over it also...
_________________
Power to the people!
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Fri Jul 12, 2013 3:18 pm    Post subject: Reply with quote

per app routing can only be done with iptables I think.
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