View previous topic :: View next topic |
Author |
Message |
tnit n00b

Joined: 24 Mar 2004 Posts: 16
|
Posted: Tue Aug 09, 2005 5:24 pm Post subject: Another routing question |
|
|
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 |
|
 |
acasto Apprentice


Joined: 06 Feb 2004 Posts: 236 Location: Durka-Durka-Stan
|
Posted: Tue Aug 09, 2005 7:02 pm Post subject: |
|
|
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 |
|
 |
tnit n00b

Joined: 24 Mar 2004 Posts: 16
|
Posted: Tue Aug 09, 2005 7:19 pm Post subject: |
|
|
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 |
|
 |
|