routing

Alex Chontzopoulos ac at it-cell.com
Tue Jan 17 08:27:11 EET 2006


Έχω παρόμοια υλοποίηση σε 2.6.11 και δεν αντιμετωπίζω κανένα πρόβλημα.
Νομίζω...(νομίζω λέω) ότι κάπου είχα διαβάσει ότι ο 2.4 τα έκανε κάτι τέτοια..

-----Original Message-----
From: linux-greek-users-bounces at lists.hellug.gr [mailto:linux-greek-users-bounces at lists.hellug.gr] On Behalf Of nikos kavourinos
Sent: Tuesday, January 17, 2006 3:02 AM
To: linux-greek-users at lists.hellug.gr
Subject: routing

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