I have implemented advance routing fo load balancing and a script for and fail over on a Linux machine which run squid and dansguardian for proxying, i have three interfaces on this machine which are
Code:
10.201.108.254 eth1 external interface connected to service provider
10.201.109.254 eth2 external interface connected to service provider
10.200.14.11 eth0 Internal interface for users.
Routing List
Code:
192.101.5.0/26 via 10.200.14.254 dev eth0
10.1.45.0/24 via 10.200.14.254 dev eth0
192.168.100.0/24 via 10.200.14.254 dev eth0
10.201.108.0/24 dev eth1 proto kernel scope link src 10.201.108.11
10.201.14.0/24 dev eth3 proto kernel scope link src 10.201.14.11
10.201.109.0/24 dev eth2 proto kernel scope link src 10.201.109.11
192.168.65.0/24 via 10.200.14.254 dev eth0
192.168.50.0/24 via 10.200.14.254 dev eth0
192.168.151.0/24 via 10.200.14.254 dev eth0
10.1.10.0/24 via 10.200.14.254 dev eth0
10.200.17.0/24 via 10.200.14.254 dev eth0
10.200.16.0/24 via 10.200.14.254 dev eth0
131.11.3.0/24 via 10.200.14.254 dev eth0
192.168.155.0/24 via 10.200.14.254 dev eth0
10.200.14.0/24 dev eth0 proto kernel scope link src 10.200.14.11
192.168.152.0/24 via 10.200.14.254 dev eth0
10.203.0.0/24 via 10.200.14.254 dev eth0
172.25.0.0/16 via 10.200.14.254 dev eth0
10.100.0.0/16 via 10.200.14.254 dev eth0
192.172.0.0/16 via 10.200.14.254 dev eth0
169.254.0.0/16 dev eth3 scope link
10.200.0.0/16 via 10.200.14.254 dev eth0
Code:
default
nexthop via 10.201.108.254 dev eth1 weight 2
nexthop via 10.201.109.254 dev eth2 weight 1
I have added static routes for LAN users which are
#LOCAL NETWORKS
Code:
any net 192.168.151.0/24 gw 10.200.14.254 dev eth0
any net 192.168.50.0/24 gw 10.200.14.254 dev eth0
any net 192.168.152.0/24 gw 10.200.14.254 dev eth0
any net 192.168.155.0/24 gw 10.200.14.254 dev eth0
any net 192.168.65.0/24 gw 10.200.14.254 dev eth0
any net 192.172.0.0/16 gw 10.200.14.254 dev eth0
Problem is that when i ping internal interface that is 10.200.14.11 which is assigned on eth0, the ping breaks too much due to which browsing gets slow when internet traffic load is high on proxy server then ping breaks too much on internal interface, i have checked the network on layer-2 switches and layer-3 firewalls which are fine changed network cables also changed network interface on proxy server still ping is breaking, i dont understand wts the reason traffice flow is Users -> Firewall (gateway) -> Proxy Server -> Router -> service provider
any help will b highly appreciated
Last edited by zaxxon; 12-17-2009 at 11:03 AM..
Reason: use code tags, thank you
Hi,
I have a program in Pro*c when I run it I have no problem with the output but when it runs via the at command and except the output has page breaks every 66 lines. I don't want those page breaks to be in the output.
any idea? (9 Replies)
Hi,
I am new to Unix (AIX).
I have a header (in a text file) that needs to be wrtitten on all the pages of a result file (text file). After the header is written, data needs to be read from a file A(text file) and inserted to the result file. If the number of lines reaches 80 in a page, page... (1 Reply)
The file FTP'd got few breaks and the data looks like:
ABCTOM NYMANAGER
ABCDAVE NJ
PROGRAMMER
ABCJIM CTTECHLEAD
ABCPETERCA
HR
and i want the output like:
ABCTOM NYMANAGER
ABCDAVE NJPROGRAMMER
ABCJIM CTTECHLEAD
ABCPETERCAHR
can you please help me in writing the shell... (8 Replies)
Hi everyone,
I have gone through the forum trying to find an answer to this question but was unsuccessful. I am hoping that someone can help me with this please.
I am trying to get my script to recognise line breaks from a file and to give me a result for wc of each line. So basically, if you... (7 Replies)
Hi,
I develop simple animation ping script on Solaris Platform. It is like Cisco ping.
Examples and source code are below.
bash-3.00$ gokcell 152.155.180.8 30
Sending 30 Ping Packets to 152.155.180.8
!!!!!!!!!!!!!.!!!!!!!!!!!!!!!.
% 93.33 success... % 6.66 packet loss...... (1 Reply)
Today there was a situation where processes running from inittab was broken. Can someone help me understand, how to find out, who might have stopped those processes? Or how does it get broken?
G (2 Replies)
Hi
I am using perl to ping a list of nodes - with script below :
$p = Net::Ping->new("icmp");
if ($p->ping($host,1)){
print "$host is alive.\n";
}
else {
print "$host is unreacheable.\n";
}
$p->close();... (4 Replies)
Hi All,
Need an urgent solution to an issue . We have created a ksh file or shell script which generates 1 DAT file. the DAT file contains extract of a select statement .
Now the issue is , when we are executing the ksh file , the output is coimng with page breaks and line breaks .
We have... (4 Replies)
I found a script that almost takes care of a bit of clunkiness in git. I say almost, because when I use it, after it does what it's supposed to do, it breaks my shell, or something. After I use it, I can't use wildcards any more. I tried to run `jshint *.js` as I do a million times a day, but it... (3 Replies)
help with bash script!
im am working on this script to make sure my server will stay online, so i made this script..
HOSTS="192.168.138.155"
COUNT=4
pingtest(){
for myhost in "$@"
do
ping -c "$COUNT" "$myhost" &&return 1
done
return 0
}
if pingtest $HOSTS
#100% failed... (4 Replies)