miniBB: free php bulletin board and forum softwareminiBB: free php bulletin board and forum software 
 - Forums - Reply - Statistics - Sign Up - Search -
malaysia-linux.no-ip.org Minux Mini Forum / noGuiX / camne nak setup Internet sharing?
Author Message
sabun007
Member
# Posted: 11 Sep 2007 01:41
Reply 


Saya run noguix live-cd atas komputer pentium 4 1.6Ghz, 512mb ram. nak jadikan noguix linux router. tapi, camne nak kasi client windowx xp share internet melalui noguix?

admin
Admin
# Posted: 12 Sep 2007 14:50
Reply 


ahh yang nie...guna iptables aje.. masquerade google klau nak cepat..kalau sanggup tunggu, aku builtkan satu script untuk act as linux router...

thanks

sabun007
Member
# Posted: 13 Sep 2007 19:20
Reply 


saya dah google pasal masquerade ngan forward iptables tapi, masih tak faham la. Selain guna iptables, apa lagi yang saya kene ada?

sorry, saya budak baru belajar. :)

admin
Admin
# Posted: 14 Sep 2007 15:37
Reply 


harap maklum!

HOW TO LINUX ROUTER


Requirements :
- 2 network card - eth0, eth1
- Firewall - iptables
- any Linux Distro

eth0 = WAN = auto dhcp
eth1 = LAN = static ip

1) Configure static ip for eth1 & left empty for gateway
2) Create iptables rule

$ iptables -t NAT -A POSTROUTING -i eth0 -j MASQUERADE
$ iptables -A FORWARD -i eth1 -j ACCEPT

3) enable kernel ip_forward = 1

$ echo 1 > /proc/sys/net/ipv4/ip_forward

4) Testing
ping local
ping www.yahoo.com

Your reply
Bold Style  Italic Style  Underlined Style  Image Link  URL Link 

» Username  » Password 
Only registered users can post here. Please enter your login/password details before posting a message, or register here first.