Melakukan Konfigurasi Router Sebagai Gateway Server

Share on :

     
    Masuk ke terminal 
       Masukan su                       
    Masukan password
cek NIC
# ifconfig
Harus ke cek:
eth0
eth1
lo
setting ip network
# nano /etc/network/interfaces    
auto lo
iface lo inet loopback
Ketik:
auto eth0
iface eth0 inet dhcp

auto eth1
iface eth1 inet static
                        address               192.168.100.1
                        netmask              255.255.255.0
Kemudian simpan
Ctrl+o
Ctrl+x
Restart network
# nano /etc/init.d/networking.restart
                Setting Ip DNS
                                # nano /etc/resolv.conf
                                                nameserver 119.81.0.251
                                                nameserver 8.8.8.8
               Mengaktifkan ip forward
                                # nano /etc/sysctl.conf
            Lalu hilangkan tanda # pada # net.ipv4.ip_forward
            Ctrl+o
            Ctrl+x
            Mengaktifkan NAT             
                                #Iptables –t nat –A POSROUTING –o eth0 –j MASQUERADE
 Lalu copy
Kemudian simpan di rc.local
Masuk ke rc.local dengan perintah:
                                # nano /etc/rc.local
(simpan di atas exit0)

1 komentar:

tahneybabinski mengatakan... 3 Maret 2022 pukul 06.16

Sloty Casino (New) | Mapyro
Sloty Casino in 태백 출장안마 New London (London, MB). 김포 출장샵 Find map. 제주도 출장안마 All Games. The first game I did was the 3-reel 목포 출장마사지 slot game I found in a lot of 충청북도 출장샵 places around the world.

Post a Comment and Don't Spam!