PC Router .... Success !!!
perintah yang dilakukan:
setting ip address :
eth0 : 192.168.1.82/24 (internet)
eth1 : 192.168.0.1/24 (Client/local)
gateway : 192.168.1.1
*centang IP Forwarding (pada menu routing)
dns 1 :192.168.1.1
dns 2 :219.83.41.158
dns 3 :219.83.41.157
enable ip forwarding :
# echo 1 > /proc/sys/net/ipv4/ip_forward
Setting ip tables :
iptables -t nat -A POSTROUTING -s 192.168.0.1/24 -j MASQUERADE
Isi Forwarders :
# mcedit /etc/named.conf
pada forwarders isi kan IP DNS
{ 219.83.41.158; 219.83.41.157; };
Restart Bind :/etc/init.d/named restart
restart network :/etc/init.d/network restart
ket :
Matikan IPtables dengan cara
#yast
masuk menu User and security
pilih firewall
stop firewall
ok
setting ip address :
eth0 : 192.168.1.82/24 (internet)
eth1 : 192.168.0.1/24 (Client/local)
gateway : 192.168.1.1
*centang IP Forwarding (pada menu routing)
dns 1 :192.168.1.1
dns 2 :219.83.41.158
dns 3 :219.83.41.157
enable ip forwarding :
# echo 1 > /proc/sys/net/ipv4/ip_forward
Setting ip tables :
iptables -t nat -A POSTROUTING -s 192.168.0.1/24 -j MASQUERADE
Isi Forwarders :
# mcedit /etc/named.conf
pada forwarders isi kan IP DNS
{ 219.83.41.158; 219.83.41.157; };
Restart Bind :/etc/init.d/named restart
restart network :/etc/init.d/network restart
ket :
Matikan IPtables dengan cara
#yast
masuk menu User and security
pilih firewall
stop firewall
ok