IPIP TUNNEL - LINUX DEBIAN
Install Paket : # apt-get install –y iproute openssh-server sudo
Asumsi :
IP Gateway eth0 = 10.10.10.10 ( Sesuaikan Dengan IP Gateway yang diberikan ISP )
IP eth0 = 10.10.10.11/29 ( Sesuaikan Dengan IP yang diberikan ISP )
IP eth1 = 15.15.15.1/24 ( Sesuaikan Dengan IP LAN )
IP TUNNELLING = 7.7.7.1/24 ( IP Terserah )
Setting PC-Router KANTOR KEPARAT BANDUNG
bdg:/# ifconfig eth0 10.10.10.11 netmask 255.255.255.248 broadcast 10.10.10.15
bdg:/# ifconfig eth1 15.15.15.1 netmask 255.255.255.0 broadcast 15.15.15.255
bdg:/# route add default gw 10.10.10.10
bdg:/# touch /root/tunnel.sh
bdg:/# vim /root/tunnel.sh
#!/bin/sh
#=======================
# Tunnelling KANTOR KEPARAT BANDUNG
#=======================
# ip tun del ifTUN
ip tun add ifTUN mode ipip remote 20.20.20.11 local 10.10.10.11
ip addr add 7.7.7.1/24 dev ifTUN
ip link set ifTUN up
route add -net 35.35.35.0/24 gw 7.7.7.4 dev ifTUN
bdg:/# chmod 755 /root/tunnel.sh
bdg:/# ./root/tunnel.sh
Asumsi :
IP Gateway eth0 = 20.20.20.10 ( Sesuaikan Dengan IP Gateway yang diberikan ISP )
IP eth0 = 20.20.20.11/29 ( Sesuaikan Dengan IP yang diberikan ISP )
IP eth1 = 35.35.35.1/24 ( Sesuaikan Dengan IP LAN )
IP TUNNELLING = 7.7.7.4/24 ( IP Terserah )
Setting PC-Router KANTOR KEPARAT JAKARTA
jkt:/# ifconfig eth0 20.20.20.11 netmask 255.255.255.248 broadcast 20.20.20.15
jkt:/# ifconfig eth1 35.35.35.1 netmask 255.255.255.0 broadcast 35.35.35.255
jkt:/# route add default gw 20.20.20.10
jkt:/# touch /root/tunnel.sh
jkt:/# vim /root/tunnel.sh
#!/bin/sh
#=======================
# Tunnelling KANTOR KEPARAT JAKARTA
#=======================
# ip tun del ifTUN
ip tun add ifTUN mode ipip remote 10.10.10.11 local 20.20.20.11
ip addr add 7.7.7.4/24 dev ifTUN
ip link set ifTUN up
route add -net 15.15.15.0/24 gw 7.7.7.1 dev ifTUN
jkt:/# chmod 755 /root/tunnel.sh
jkt:/# ./root/tunnel.sh
IPIP TUNNEL - LINUX DEBIAN
Labels:
Linux
Subscribe to:
Post Comments (Atom)
Comments :
Post a Comment