routing

nikos kavourinos eos at eos.gr
Tue Jan 17 03:01:42 EET 2006


FYI
dokimasa to poly endiaferon se 2.4.29 :

ifconfig eth0 xx.xx.xx.1 netmask 255.255.255.0 broadcast xx.xx.xx.255

ifconfig eth1 yy.yy.yy.1 netmask 255.255.255.252 broadcast yy.yy.yy.3
ifconfig eth1:1 zz.zz.zz.1 netmask 255.255.255.252 broadcast xx.xx.xx.3

# prosthetw katallhlws kai endeiktika:
echo "199	link1" >>  /etc/iproute2/rt_tables
echo "195	link2l" >>  /etc/iproute2/rt_tables

ip route change default via yy.yy.yy.2 dev eth1

iptables -t mangle -A PREROUTING -p tcp -s xx.xx.xx.0/24 \
-d 0.0.0.0/0 --destination-port 80 -j MARK --set-mark 8080
iptables -t mangle -A PREROUTING -p tcp -s xx.xx.xx.0/24 \
-d 0.0.0.0/0 --destination-port 443 -j MARK --set-mark 8080

ip rule add from zz.zz.zz.1/32 table link2l
ip rule add fwmark 8080 table link1

ip route add default table link2l nexthop via zz.zz.zz.2
ip route add default table link1 nexthop via zz.zz.zz.2


......   kinhsh

kai syntoma pairnw:
    kernel: Neighbour table overflow.

liga lepta meta:
traceroute -s zz.zz.zz.1 tt.tt.tt.tt
	No buffer space available
traceroute tt.tt.tt.tt
	No buffer space available






More information about the Linux-greek-users mailing list