ok example ethrnet ip / gateway 87.224.234.XX / 87.224.234.1(metric 10)
pppoe exaple ip(every reconnect are ifferent ip and gateways) = 212.122.43.12 / 212.122.43.6(metric 1) i want allow users be available to work with 87.224.234.XX . similar proble with two ethernet cards. which can be resolved with ip route add gateway1 dev eth1 table ETH1 ip route add default via gateway1 dev eth1 table ETH1 ip route add gateway2 dev eth3 table ETH3 ip route add default via gateway2 dev eth3 table ETH3 iptables -t mangle -A OUTPUT -m owner --uid-owner 108 -j MARK --set-mark 1 ip rule add fwmark 1 pri 100 table ETH3 iptables -t nat -A POSTROUTING -o eth3 -j SNAT --to-source=gateway1 echo 0 > /proc/sys/net/ipv4/conf/eth3/rp_filter ip rule add from ip1 pri 200 table ETH1 ip rule add from ip2 pri 300 table ETH3 but for this method i must know gateway of any device. but it is different every connect pppoe :( i hope you will understand whaat i mean. :) Thanks. 2007/12/4, Sami kamel <[EMAIL PROTECTED]>: > > I think you might wan to change the IP scheme, I suppose now both > interfaces are on the same subnet, u might need to put them on different > subnets hence two gateways. > > please keep us posted > > On Dec 4, 2007 9:17 AM, Alexandr Shurigin <[EMAIL PROTECTED]> > wrote: > > > nono :) > > > > i have 2 default routers now in debian etch. > > 0.0.0.0 > > > > pppoe metric is upper than ethernet > > > > when i receive packet via ethrnet response packet my server send via > > pppoe. > > I need to response via ethrenet :) > > and when i receive by pppoe i need t oresponse via pppoe. > > > > Thanks. > > > > 2007/12/4, Sami kamel <[EMAIL PROTECTED] >: > > > > > Alexandr, > > > > > > I am not sure exactly what you mean > > > > > > but if the problem is that it is assigned different ip everytime and > > > you are using static routes on other devices you can link the mac address > > > of > > > this machine to a specific ip address on the dhcp sever so it will take > > > the > > > same ip everytime. > > > > > > Regards, > > > Sami > > > > > > On Dec 4, 2007 3:44 AM, Alexandr Shurigin < > > > [EMAIL PROTECTED]> wrote: > > > > > > > Hello all > > > > > > > > i have routing problem. I have multiple gateways. > > > > One gateway is used when my pppoe linked up. There is aassigned by > > > > dhcp ip,dns,gw. gw different everytime. > > > > > > > > other is my thernet link. > > > > > > > > i want to allow users see me by ethernet card address > > > > > > > > Is that resolvable problem? :) > > > > > > > > Regards > > > > > > > > > > > > >

