[nos-bbs] TUN0 addressing w/JNOS atop Linux

Tim Gorman ab0wr at ab0wr.net
Thu Jan 12 16:46:18 EST 2006


Maiko,

Ok, you've lost me on the tunneling. Is there a document somewhere I can read 
up on this?

Or can you explain the tunneling bit a little more?

tim ab0wr

On Wednesday 11 January 2006 21:39, maiko at pcs.mb.ca wrote:
> Hi Jay,
>
> > This box will be configured as a HamGate, so his Public IP on his eth0
> > interface (216.144.222.182) *MUST* be delivered to the JNOS application
> > because he *will* be running IPIP encapsulation to all the other HamGates
> > across the world and this IP is what's published in encap.txt.
>
> How is he connected to the internet ? By the looks of the
> hostname, I am guessing CABLE or DSL *direct* from the modem
> to the computer. Am I correct ?
>
> > shell ifconfig tun0 44.102.128.1 pointopoint 192.168.2.2 mtu 1500 up
>
> Nope ! If he is connected direct to the internet he'll have to have
> something like the following :
>
>  ip address 44.102.128.2
>  shell ifconfig tun0 44.102.128.1 pointopoint 44.102.128.2 mtu 1500 up'
>  shell ifconfig tunl0 44.102.128.1 up
>
> NOTE: your NOS now has an ip address of 44.102.128.2, but the gateways
> entry will be going to 44.102.128.1 - and LINUX does the ENCAP !
>
> The encap.txt can not be used inside of JNOS, instead he would have
> to have a munge script to process the encap.txt on the linux side,
> since the linux will do the TUNNELING (ip-ip).
>
> Don't confuse the TUNL0 (ip-ip tunneling) with the TUN0 (network device).
>
> I hope this is not too confusing. But that's what I *used* to do. Having
> a firewall/router (ADSL router) box is handy, especially with the DMZ
> feature, you can actually tell the router to DMZ to the JNOS side of
> the TUN link between JNOS and Linux (192.168.1.130 ptp 192.168.1.131
> for example), then you can do the encap.txt inside JNOS like before.
>
> Hopefully that's enough for you to play with for now.
>
> Good luck.
>
> Maiko
>
> _______________________________________________
> nos-bbs mailing list
> nos-bbs at lists.tapr.org
> https://lists.tapr.org/cgi-bin/mailman/listinfo/nos-bbs




More information about the nos-bbs mailing list