리눅스를 서버로 해서 인터넷 연결공유 설정하기

|

Fedora Tips

by Krishnan Subramanian

2004-01-15 Fedora Tips #12:
To share your internet connection:
In /etc/sysctl.conf set

net.ipv4.ip_forward = 1

and then exec

# sysctl -p

Now exec

# iptables -t nat -A POSTROUTING -s your_network -j MASQUERADE
Where your_network is the network address, for example192.168.0.0/24

Then exec:
# service iptables save

- submitted by Franco Catrin.
Trackback 0 And Comment 0
prev | 1 | 2 | 3 | 4 | 5 | 6 | next