[nos-bbs] Two Tunnels in JNOS?

Chris Maness chris at chrismaness.com
Tue Mar 12 16:56:20 EDT 2013


I used to run TNOS with two serial links to Linux.  One with the real
internet address, and the other to provide 44-net connectivity for the
Linux host it was running on.  Is this possible with JNOS tunnel
devices?  I have tried on two different systems, and failed on both.

Here is the autoexec I am working on:


#
# A minimal autoexec.nos for a JNOS system having network connectivity to
# the linux box on which it is running on. From JNOS you can telnet to the
# linux box, and from the linux box you can telnet to JNOS. Any packet radio
# users can connect to JNOS through the single RF port which can be any TNC
# running in KISS mode. This configuration also allows JNOS users to exchange
# mail with other JNOS users (local mail), using the Send and Receive cmds.
#
# The jnosinstaller was designed for first time JNOS users, giving them
# something to start playing with.
#
# This autoexec.nos was GENERATED by jnosinstaller (version 2.1), which was
# released in January of 2008. The original version was written in July of
# the year 2005 - both versions written by Maiko Langelaar / VE4KLM.
#
# Enable JNOS to log events to dated files in /jnos/logs directory
#
log on
#
# Maximize TCP performance for standard LAN having MTU 1500
#
tcp mss 1460
tcp window 5840
#
tcp maxwait 30000
tcp retries 5
#
ip address 44.18.0.185
#
# Hostname and default ax25 call
#
hostname n8yoh.ampr.org
ax25 mycall N8YOH
#
# Local DNS is done via the 'domain.txt' file !
#
# Create a network interface. This allows us to talk to the linux
# box on which JNOS is running - and in turn - to the internet.
#
attach tun tun0 1500 0
#
ifconfig tun0 ipaddress 192.168.1.131
ifconfig tun0 netmask 255.255.255.0
ifconfig tun0 mtu 1500
#
# Give it a chance to come up
#
pause 1
#
# Create another network interface. This allows linux to talk to AMRP-net.
#
attach tun tun1 1500 0
#
ifconfig tun1 ipaddress 44.18.0.185
ifconfig tun1 netmask 255.255.255.254
ifconfig tun1 mtu 1500
#
# Give it a chance to come up
#
pause 1
#
#
# JNOS creates the TUN device, so JNOS needs to do some post configuration,
# by shelling out to the linux command line and running 'ifconfig' command.
#
shell ifconfig tun0 192.168.1.130 pointopoint 192.168.1.131 mtu 1500 up
shell ifconfig tun1 44.18.0.186 pointopoint 44.18.0.185 mtu 1500 up
shell arp -s 192.168.1.131 00:D0:B7:9F:62:44 pub
shell ip route add 44.0.0.0/8 via 44.18.0.186 dev tun1
#
# Attach AXIP wormhole to a remote system
#
attach axip axi0 256 44.18.44.1
#
ifconfig axi0 description "axip wormhole"
#
# Attach a kiss enabled TNC
#
attach asy ttyS0 - ax25 vhf 4096 256 9600
#
ifconfig vhf description "vhf - 1200 baud port"
#
param vhf dtr 1
param vhf rts 1
comm vhf "KISS ON"
comm vhf "RESTART"
pause 5
param vhf 2 256
param vhf 3 1
param vhf 5 1
#
param vhf TxDelay 25
#
# Beacon out the RF port every 20 minutes
#
#
ax25 bctext "internet gateway"
ax25 bcinterval 1200
ax25 bc vhf
#
# Start the engines
#
start ax25
start telnet
start smtp
#
#
################################################################################
domain suffix ampr.org.         # gets added to all host names etc.
domain dns on                   # set on if we want to process domain queries.
domain addserver 192.168.1.129  # set this to your domain server.
domain addserver 192.168.1.1    # Backup server
domain cache size 40            # no. of entries to hold in memory.
domain maxwait 30               # time to wait on a domain query of your server
################################################################################
#
# Load the Gateways file
source encap.txt
#
# Add some more routes
route add 44.18.0.186/32 tun0 192.168.1.130
#
#
################################################################################
# Netrom params
################################################################################
#
attach netrom
netrom int vhf 203 n
netrom call n8yoh-7
netrom alias SAGE
netrom ttl 60
netrom irtt 6000
netrom td 600
netrom ack 1000
netrom time lin
net obs 0
net nodet 1800
net obs 1700
net minq 10
net pr on
net derate no
netrom save
#
#
start netrom
#

Anything obviously wrong here?

Thanks,
Chris KQ6UP



More information about the nos-bbs mailing list