hi---first of all thank u HOW-TO(people here think i''m
genious)--:o))))
but will someone plzz help me !
here is the netork i have
WEb---|server A|--------|server B|---- my clients
eth0 eth1 eth0 eth1
10.0.0.3/8 0.2/8 0.1/8
the network is on ip 10.0.0.0/8 with eth0 on server A
as valid ip from ISP ! serverA runs squid & ipchains
while serverB is THE linux router(well want it to
be!).
i have recomplied kernel 2.2.17 with all required
options on redhat6.2 & have the following script!....
but my clients fail to access web---WHY???
#!/sbin/sh
for f in /proc/sys/net/ipv4/conf/*/rp_filter; do
echo 1 > $f
done
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 1 > /proc/sys/net/ipv4/tcp_syncookies
for f in /proc/sys/net/ipv4/conf/*/accept_redirects;
do
echo 0 > $f
done
for f in
/proc/sys/net/ipv4/conf/*/accept_source_route; do
echo 0 > $f
done
######---starting bandwidth
#####-----for eth0
tc qdisc add dev eth0 root handle 10: cbq bandwidth
100Mbit avpkt 1000
tc class add dev eth0 parent 10:0 classid 10:1 cbq
bandwidth 100Mbit rate 100Mbit allot 1514 weight 1Mbit
prio 8 maxburst 20 avpkt 1500
tc class add dev eth0 parent 10:1 classid 10:100 est
2sec 10sec cbq bandwidth 100Mbit rate 64Kbit allot
1514 weight 1Kbit prio 5 maxburst 20 avpkt 1500
bounded
tc class add dev eth0 parent 10:1 classid 10:200 cbq
bandwidth 100Mbit rate 90Mbit allot 1514 weight 9Mbit
prio 5 maxburst 20 avpkt 1500 bounded
tc qdisc add dev eth0 parent 10:100 sfq quantum 1514b
perturb 30
tc qdisc add dev eth0 parent 10:200 sfq quantum 1514b
perturb 15
tc filter add dev eth0 parent 10:0 protocol ip prio
100 u32 match ip src 10.1.4.0/24 flowid 10:100
tc filter add dev eth0 parent 10:0 protocol ip prio
100 u32 match ip src 10.1.61/32 flowid 10:100
tc filter add dev eth0 parent 10:0 protocol ip prio
100 u32 match ip src 10.0.255.0/29 flowid 10:200
tc filter add dev eth0 parent 10:0 protocol ip prio
100 u32 match ip src 10.175.0.0/16 flowid 10:200
....etc..etc....same as given in the how-to !!
my mind is now exhausted to find a reason(which i''m
sure is a very basic one)....
one more point to notice is---i want to implement
VirtualServers(load balance) between server A &
B...well dont have much funds really to go in for
those high costing bandwidth at the moment!..
can someone help me plzz with this !
thanking in advance
regards & good luck
arindam
__________________________________________________
Do You Yahoo!?
Thousands of Stores. Millions of Products. All in one Place.
http://shopping.yahoo.com/