Link to home
Start Free TrialLog in
Avatar of abangbatax
abangbatax

asked on

INTERNET CONNECTION SHARING TO LAN and LIMITING THE BANDWIDTH to each LAN PC.

Hi,

does anyone know how to ENABLE INTERNET CONNECTION SHARING TO LAN and LIMITING THE BANDWIDTH to each LAN PC.

the OS is LINUX IPCOP 1.4

Thanks
ASKER CERTIFIED SOLUTION
Avatar of shoaibbhatti007
shoaibbhatti007
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of abangbatax
abangbatax

ASKER

above solutions are more to limiting bandwidth
how about enable internet sharing for LAN from a pc that connected to internet
IPcop is a firewall. You should connect the internet line to RED interface and LAN PCs to GREEN interface and that's it.
http://www.ipcop.org/1.4.0/en/install/html/decide-configuration.html

You of course need at least two network interfaces for that
NOP..You can share Internet on some LINUX Server/PC with IPTABLES with NAT and for www/ftp traffic use SQUID.
If you use XP/Windows 2003, use its ICS (Internet Conenction Share) for Internet Sharing to Other PC/Laptops with One or More LAN Cards in XP/Windows 2003
Blaz:

I have done what your solution is but LAN still not connected to internet
another thing is RED is not connected to INTERNET either

is there anything i setup wrong?
Which interface is connected to the internet then?

RED interface should be connected to the internet, GREEN to local LAN network - that is how it is supposed to be setup.

Perhaps it is best that you go through the installation step by step:
http://www.ipcop.org/1.4.0/en/install/html/

Yes, RED is conencted to Internet
Green is to LAN

i think the gateway for the RED is not setup using the step above link u gave

how to set manually the gateway?

thanks
For configuration you also have:
http://www.ipcop.org/1.4.0/en/admin/html/

Does internet access work on the IPCop machine itself? If it does the gateway is configured correctly.

BTW: What kind of internet connection do you have?

I think that you really should check the IPCop website for manuals and FAQs so you will have a better understanding of what you are doing...
the internet doesn't work on the IPCop it self
my internet connection using broadband connection
I am writing in detail(run commands with " sign # " :
  stop iptable service:
# service iptables stop
# echo 1 > /proc/sys/net/ipv4/ip_forward

    Whatever LAN interface ,first rule is redirect http traffic to 3128, this is SQUID port
#  iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
    172.16.1.0/24 is the subnet to NAT
# iptables -A POSTROUTING -p tcp -m tcp -s 172.16.1.0/24 --dport 81:65535 -j MASQUERADE
# iptables -A POSTROUTING -p udp -m udp -s 172.16.1.0/24 --dport 81:65535 -j MASQUERADE
# iptables -A POSTROUTING -p tcp -m tcp -s 172.16.1.0/24 --dport 25 -j MASQUERADE
# iptables -A POSTROUTING -p tcp -m tcp -s 172.16.1.0/24 --dport 21 -j MASQUERADE
# iptables -A POSTROUTING -p tcp -m tcp -s 172.16.1.0/24 --dport 20 -j MASQUERADE
# iptables -A POSTROUTING -p udp -m udp -s 172.16.1.0/24 --dport 21 -j MASQUERADE
# iptables -A POSTROUTING -p udp -m udp -s 172.16.1.0/24 --dport 20 -j MASQUERADE

# service iptables save
# service iptables start
# service iptables status

you can iptables scripts from: http://www.linuxguruz.com/iptables/
that is for what shoaibbhatti007?
It's not directly related, but the more recent Smoothwall versions  (http://www.smoothwall.org) have bandwidth tracking and additional restrictions.

Avatar of Arty K
> the internet doesn't work on the IPCop it self
> my internet connection using broadband connection

To what device your IPCop connected with RED interface?
Do you have external IP address already or you should run PPPOE client for getting it?
Are you behind of some kind of router with NAT enabled? I mean your IPCop is connected to such router and have private IP address (like 192.168.x.x) on RED interface? If it is, your configuration is incorrect.