YeNiE Blog

Januari 23, 2010

IPIP / Tunnel FreeBSD

Filed under: Celoteh Atmo — geniqh @ 5:53 am

Langsung ae
1. server A
- Misal IP Publik 10.10.10.2
- misal IP local buat tunnel 192.168.1.1/28
#ifconfig gif0 create
#ifconfig gif0 tunnel 10.10.10.2 10.1.1.2
#ifconfig gif0 192.168.1.1 255.255.255.240 192.168.1.2
#ifconfig gif0 mtu 1500

2. Server B
- misal IP publik 10.1.1.2
- IP lokal 192.168.1.2/28
#ifconfig gif0 create
#ifconfig gif0 tunnel 10.1.1.2 10.10.10.2
#ifconfig gif0 192.168.1.2 255.255.255.240 192.168.1.1
#ifconfig gif0 mtu 1500

3. coba test koneksi tunnel nya
- dari server A ke server B atau sebaliknya
#ping 192.168.1.2 (dari server A) / #ping 192.168.1.1(dari server B)
kalau ada reply berarti IPIP sudah jalan

4. Kalau server A sebagai NAT nya tinggal nambahi NAT untuk interface gif0 dan blok ip 192.168.1.0/28…terserah pake ipnat/pf

kalau ada yg salah mohon koreksinya

Tinggalkan sebuah Komentar »

Belum ada komentar.

RSS umpan untuk komentar-komentar dalam tulisan ini. URI Lacak Balik

Tinggalkan Balasan

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 / Ubah )

Twitter picture

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

Facebook photo

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

Connecting to %s

Tema: Banana Smoothie. Blog pada WordPress.com.

Ikuti

Get every new post delivered to your Inbox.