Network Troublshooting > General Networking Support in Linux

IPtable and Internet sharing REDHAT LINUX 9.0

(1/2) > >>

sathish:
Hello Sir,

In my office i am having WAN link, my ISP provider has provided 12 IP address. I want to use this 12 ip addres in IP table (it should work in roundrobin system in the NAT table).

1) eth0 -  is the ISP provider link
2) eth1 - is the our private LAN link.

and also
I want to share the internet to the private LAN link.

Thank you.
Sathish :)

narsingh:
Any problem in using Squid proxy server for the purpose?

Ricky:
Satish... If u need to share internet from linux box to other clients by Iptables.. then run following script..

--- Code: ---#!/bin/sh

iptables=/sbin/iptables



$iptables --flush -t nat



iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
--- End code ---
Execute the above script.. and u will be able to share internet from your linux box. In your clients, give the ip of your linux box as the gateway.
Please give litle more detail that wht do u want to do.. i.e. roundrobin system..

MiG-15:
how many users do you have in your office setup, i use the same sort of setup for my home but i only have one ip and about a dosen computers on the lan via dhcp.  the script  Ricky posted should work nicely..  and dhcp is easy to setup...  lol with webmin(!)

wajeh786:
hi dears
 
  i can share the internet with the squid through my linux box but i must give the proxy server address to each client's web browere which i donot want to each time cuz i have more than 50 clients in my lan  and also i can not use the  mail,ftp etc clients on my windows machines.
 

  one more thing is that my network configurations are:

i have one network card with two ips one is lan and other is real
 
eth0 is for local ip
and eth0:1 is for real ip

can any body help me in configuing the transparent proxy
regards
 wajeh

Navigation

[0] Message Index

[#] Next page

Go to full version