dear all frnd,
i need help ,multiple ips from different subnet in my fedora4 squid server,such as 0eth = my internet ip from my isp,and for local network eth1= 192.168.10.1/255.255.255.224
eth2=192.168.10.33/255.255.255.224
eth3=192.168.10.65/255.255.255.224
how can i configer thous ip my squid server,is it possible,pls help me
thaks
rmira
multiple ips in squid server
Re: multiple ips in squid server
edit /etc/sysconfig/network-scripts/ifcfg-eth1 and change its contents to sayrmira wrote: i need help ,multiple ips from different subnet in my fedora4 squid server,such as 0eth = my internet ip from my isp,and for local network eth1= 192.168.10.1/255.255.255.224
eth2=192.168.10.33/255.255.255.224
eth3=192.168.10.65/255.255.255.224
how can i configer thous ip my squid server,is it possible,pls help me
thaks
rmira
edit or create ifcfg-eth2 and ifcfg-eth3 and change them as above, except with the right device names and addresses.DEVICE=eth1
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.10.1
NETMASK=255.55.255.224
my problem is configeration of squid with those ips
i edit /etc/sysconfig/network-scripts/ifcfg-eth1 and ifcfg-eth2 and ifcfg3,
but how to edit my squid.conf with this 3diferant ip for internet sharing
thaks
but how to edit my squid.conf with this 3diferant ip for internet sharing
thaks
by default squid listen on all available IPS in system
how ever u can force it on single IP also
so in ur scenario no need to make any extra configuration in squid.conf
just leave
http_port <portnumer>
E.g http_port 8080
in order to make squid for a single available Ip in ur box
http_port ip:port
E.g http_port 192.168.0.1:8080
and why u want to add much lan cards u can use multipul ip entries like
ip addr add dev eth1 192.168.0.2
ip addr add dev eth1 192.168.1.2
ip addr add dev eth1 192.168.2.2
how ever u can force it on single IP also
so in ur scenario no need to make any extra configuration in squid.conf
just leave
http_port <portnumer>
E.g http_port 8080
in order to make squid for a single available Ip in ur box
http_port ip:port
E.g http_port 192.168.0.1:8080
and why u want to add much lan cards u can use multipul ip entries like
ip addr add dev eth1 192.168.0.2
ip addr add dev eth1 192.168.1.2
ip addr add dev eth1 192.168.2.2
squid error
for reduced my broadcast i use subnet mask 255.255.255.224,maybe its wrong
aclparseIpData: WARNING Netmask mask away part of the specified IP in "192.168.10.33/255.255.255.224
and
aclparseIpData: WARNING Netmask mask away part of the specified IP in "192.168.10.65/255.255.255.224
rmira
aclparseIpData: WARNING Netmask mask away part of the specified IP in "192.168.10.33/255.255.255.224
and
aclparseIpData: WARNING Netmask mask away part of the specified IP in "192.168.10.65/255.255.255.224
rmira
-
- Company Havaldaar Major
- Posts: 178
- Joined: Sat Nov 20, 2004 5:56 pm
- Location: Attock-#-Junction
SubNOT (subnet)
Dear kbukhari;
255.255.255.0 OR /24
.... there is little BIT of "bits".........
plz confirm Is this valid subnet mask...?
may be I'm wrong, but I think 255.255.255.255 is only for Broadcast...like turning all the bits to 1 (ON).....!....as my little knowledge (tht's also dangerous) suggests that subnet mask or network id can be 0 (zero)...e.g 255.255.255.0.....but not as 255.255.255.255, means NOT ALL 1s or 0s.....(However all Zeros is given in some cases....me not confirm yet...but listen about tht...need more ReSearch)
Plz have a clikz for Detailed INSights >>>>
http://www.cisco.com/warp/public/701/3.html
http://en.wikipedia.org/wiki/Subnet_mask
http://www.subnetmask.info/
Thank you.
Default subnet mask of C Class isif u are providigng one ip than subnet mask will be
192.168.0.2/255.255.255.255
255.255.255.0 OR /24
.... there is little BIT of "bits".........
plz confirm Is this valid subnet mask...?
may be I'm wrong, but I think 255.255.255.255 is only for Broadcast...like turning all the bits to 1 (ON).....!....as my little knowledge (tht's also dangerous) suggests that subnet mask or network id can be 0 (zero)...e.g 255.255.255.0.....but not as 255.255.255.255, means NOT ALL 1s or 0s.....(However all Zeros is given in some cases....me not confirm yet...but listen about tht...need more ReSearch)
Plz have a clikz for Detailed INSights >>>>
http://www.cisco.com/warp/public/701/3.html
http://en.wikipedia.org/wiki/Subnet_mask
http://www.subnetmask.info/
Thank you.
Sh@Ring is Le@Rning