Hello anyone know how i can do internet connection sharing in Slitaz?


Internet Connection Sharing
(17 posts) (5 voices)-
Posted 13 years ago #
-
Anybody got any idea about this, i have two nic cards in the computer
i just want slitaz to be able to share its internet connectionPosted 13 years ago # -
Slitaz network script /etc/init.d/network.sh and it's configuration file /etc/network.conf support only one (1) network adapter(nic)
Posted 13 years ago # -
ohh noo :( all plans going out the window lol, but still it finds both nic's under network manager...
ohh well i just have to learn how to make my own network.sh etc to sort that problem out
or switch to another dist.Posted 13 years ago # -
would love some help with this as im kinda new to programming linux
some pointers, where to look etc. :)Posted 13 years ago # -
Assuming eth0 is up on the WAN side and eth1 is your LAN side with ip 192.168.0.1/24 :
# tazpkg get-install iptables
# ifconfig eth1 192.168.0.1 up
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADEAny LAN host should have a default route to 192.168.0.1 (you should launch a DHCP server to push it)
-pascal
Posted 13 years ago # -
Thanx m8, so i supose it just for me to install dhcp on slitaz and it should be operational as an dhcp server too. ? :D
Posted 13 years ago # -
To setup the dhcp server, edit the /etc/udhcpd.conf file and do '/etc/init.d/udhcpd start'.
You can also update RUN_DAEMONS in /etc/rcS.conf-pascal
Posted 13 years ago # -
Sweet :D Cheers m8 ill give it a try :D
Posted 13 years ago # -
Sorry to be such a noob, but could anyone please
give me some finished examples of:# tazpkg get-install iptables
# ifconfig eth1 192.168.0.1 up
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE/etc/udhcpd.conf
/etc/rcS.conf
to get dhcp server running on eth1 automaticly when comp starts up?Cheers
-ztealmaxPosted 13 years ago # -
Anyway of getting network.sh to check for second network nice ETH1
and if it exist automaticly set it up as DHCP-Router (Internet Connection Sharing) ?Posted 13 years ago # -
Maybe try Spider Button---> System Tools ---> Configure networking. It has a DHCP tab and options there.
Posted 13 years ago # -
Doesnt work with ETH1
Posted 13 years ago # -
cat /proc/net/dev
tells you if you have eth1 or not, so you could modify network.sh (or better do a personal script which would not get overwritten by a system upgrade and make /etc/rcS.conf call it adding it in the RUN_SCRIPTS row) to take eth1 up and setup internet connection sharingPosted 13 years ago # -
yea i was thinking of moding it so if ETH1 exists route if not then skip
or somethingPosted 13 years ago #
Topic Closed
This topic has been closed to new replies.