Friday, December 5, 2008

IP-to-IP tunneling

This works under Linux machine
SERVER A:

OS: Linux
Network Interface: eth0
IP: 172.16.0.1

SERVER B:

OS: Linux
Network Interface: eth0
IP: 172.16.0.2

Now we create the tunnel with following parameters.
SERVER A: 10.0.0.1 / 255.255.255.252
SERVER B: 10.0.0.2 / 255.255.255.252

In Server A:

ip tunnel add tun0 mode ipip remote 172.16.0.1 local 172.16.0.2 dev eth0
ifconfig tun0 10.0.0.1 netmask 255.255.255.252 pointopoint 10.0.0.2
ifconfig tun0 mtu 1500 up

In Server B:
ip tunnel add tun0 mode ipip remote 172.16.0.2 local 172.16.0.1 dev eth0
ifconfig tun0 10.0.0.2 netmask 255.255.255.252 pointopoint 10.0.0.1
ifconfig tun0 mtu 1500 up

Now ping 10.0.0.2 from server A:
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.139 ms
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=0.139 ms

Finish..

All the best.

13 comments:

Anonymous said...

Hello would you mind letting me know which
web host you're using? I've loaded your blog
in 3 different internet browsers and I must say this blog loads a
lot faster then most. Can you recommend a good hosting provider at a honest price?
Thanks a lot, I appreciate it!

Here is my web blog: insomnia medication
My webpage ... insomnia kidney disease

Anonymous said...

Heya i am for the primary time here. I came
across this board and I to find It really useful & it helped me
out much. I'm hoping to present one thing again and aid others such as you aided me.

Feel free to visit my blog post - online backup solution
Feel free to surf my webpage : cheap online backup

Anonymous said...

Hi to every body, it's my first visit of this webpage; this webpage consists of awesome and genuinely fine stuff in favor of readers.

Review my webpage - online computer backup
Feel free to surf my site online backup solution

Anonymous said...

Hello, i think that i saw you visited my blog so i came to return the want?
.I'm trying to to find issues to enhance my website!I guess its good enough to make use of some of your concepts!!

Feel free to visit my web-site :: online backup solutions
Feel free to visit my site : online backup solution

Anonymous said...

Thanks for sharing your info. I truly appreciate your efforts and I am waiting for
your next write ups thank you once again.

my weblog; online backup service
Take a look at my website ... best online backup service

Anonymous said...

Hi there! Do you know if they make any plugins to safeguard against hackers?

I'm kinda paranoid about losing everything I've worked hard on.
Any tips?

my site :: insomnia natural sleep aid supplement
Also see my webpage > insomnia origin

Anonymous said...

I am really happy to read this webpage posts which consists
of tons of helpful data, thanks for providing such data.

My web-site - insomnia symptoms
My web-site insomnia gallery

Anonymous said...

Greetings! Very useful advice in this particular article! It is the little changes that make the most
significant changes. Many thanks for sharing!

my site online computer backup
Feel free to surf my site ; online backup software

Anonymous said...

Hi! Someone in my Myspace group shared this site
with us so I came to give it a look. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers!

Terrific blog and excellent style and design.

Feel free to visit my page; insomnia faithless lyrics
Review my page insomnia gallery

Anonymous said...

Thanks for one's marvelous posting! I definitely enjoyed reading it, you may be a great author. I will make sure to bookmark your blog and may come back in the future. I want to encourage you to definitely continue your great work, have a nice holiday weekend!

Feel free to visit my page ... online file backup
Here is my webpage ... online backup software

Anonymous said...

Wow, this post is good, my younger sister is analyzing these kinds of things,
so I am going to inform her.

Review my blog insomnia in children
Also see my webpage: insomnia 2013

Anonymous said...

The article hаs proven useful to me. It’s гeally educatіonal
and you're simply obviously really experienced in this area. You possess opened my face to numerous views on this particular subject with intriquing, notable and solid articles.

Take a look at my webpage: buy oxycontin online
Also visit my webpage ... oxycontin

Anonymous said...

Your current post hаѕ provеn hеlpful to
us. It’ѕ quite educatiοnal and уou're simply naturally quite well-informed of this type. You get opened our face in order to various thoughts about this kind of subject matter with intriquing, notable and strong articles.

My webpage ... buy phentermine
Feel free to surf my webpage ; phentermine