Skip to content

Aplikasi : share internet dengan koneksi ADSL

August 5, 2007

INTERNET —— modem ADSL —– eth0 server eth1 —- LAN

1. SETTING SERVER

a. eth0

ip 192.168.1.12

nm 255.255.255.0

gw 192.168.1.1

dns 192.168.1.1

=====================

b. eth1

ip 10.1.1.1

nm 255.255.255.0

dns 192.168.1.1

c. set ip forward

vi /etc/sysctl.conf

net.ipv4.ip_forward=1

jalankan

sysctl -p

d. set masquerade

iptables -t nat -A POSTROUTING -s 10.1.1.0/24 -o eth0 -j MASQUERADE

atau

iptables -t nat -A POSTROUTING -s 10.1.1.0/24 –snat-to 192.168.1.15

2. SETTING KLIEN

ip 10.1.1.2-254

nm 255.255.255.0

gw 10.1.1.1

dns 192.168.1.1

From → Linux

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: