On 3:38:45 pm 10/27/04 Quang Nguyen Dang <[EMAIL PROTECTED]> wrote: > Xin ban chi giup lam cach nao de share, dung dailup, LAN, ADSL... > giong nhu trong Windows chi can share internet connection la xong, con > cai nay thi minh ko ro lam.
Gia? su+? ma'y Linux ba.n co' 2 ca'i cards: eth0 va` eth1 eth0 la` card no^'i va`o internet vo+'i ddi.a chi? 203.162.4.1 eth1 la` card ca('m va`o switch vo+'i IP 192.168.1.1. Ta^'t ca? ca'c ma'y tre^n LAN, ca('m va`o ca'i switch na`y va` LAN IPs se~ la 192.168.1.x where x is 2 to 254. DDe^? chia ma.ng tu+` ma'y Linux xuo^'ng ca'c ma'y trong LAN, ba(`ng root go~: sysctl net.ipv4.ip_forward=1 iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -o eth0 -j MASQUERADE Ta^'t ca? ma'y trong LAN se~ configure vo+'i gateway IP la 192.168.1.1. DNS IPs la` DNS tu+` ISP cu?a ba.n. Ne^'u ba.n chu+a ra`nh ve^` ca'ch su+? du.ng command line vo+'i iptables thi` xem thu+? http://firestarter.sf.net Chu'c may ma('n. -Larry http://www.nhÃmlinux.net ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ VietLUG-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/vietlug-users