Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Another routing question
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
tnit
n00b
n00b


Joined: 24 Mar 2004
Posts: 16

PostPosted: Tue Aug 09, 2005 5:24 pm    Post subject: Another routing question Reply with quote

Hello, everybody.
The situation is:
I have a default gateway on eth0
And I have a server (some services like web, mail etc) on ppp0
I need the server to work with inet thru ppp0 not the default eth0 :)
Back to top
View user's profile Send private message
acasto
Apprentice
Apprentice


Joined: 06 Feb 2004
Posts: 236
Location: Durka-Durka-Stan

PostPosted: Tue Aug 09, 2005 7:02 pm    Post subject: Reply with quote

Isn't there options to bind the programs (or listen on) to a certain IP address?
_________________
Leerrroooooyyyyyyyy JENKINS!!!!1111...................

"You know the Nazi's had pieces of flare.. that they made the Jews wear."
Back to top
View user's profile Send private message
tnit
n00b
n00b


Joined: 24 Mar 2004
Posts: 16

PostPosted: Tue Aug 09, 2005 7:19 pm    Post subject: Reply with quote

acasto wrote:
Isn't there options to bind the programs (or listen on) to a certain IP address?

sure it is, but the default gw is on eth0

i've tryed that
Code:

iptables -t mangle -A PREROUTING -i ppp0 -j MARK --set-mark 222
ip route add 0.0.0.0/0 via $IP_ppp0 dev ppp0 table 222
ip rule add fwmark 222 table 222
ip route flush cache

but it didn't help :(
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