Hello all,

I'm trying to run ax25ipd (Suse 6.1, kernel 2.2.5).
I will use it for gateway via a lan and ethernet.
I think my creation of a pipe is wrong...
How to created a pipe to ethernet??

TIA

73' Ed.



# /etc/ax25/axports
#
# The format of this file is:
#
# name callsign speed paclen window description
#
kiss    PE1NAT-14       9600    255     7       Kiss Link
2       PE1NAT-7        38400   255     7       70cm (9600 bps)
axip0   PE1NAT-11       9600    255     7       AX24-IP tunnel


# /etc/ax25/ax25d.conf
#
# ax25d Configuration File.
#
# AX.25 Ports begin with a '['.
#
[PE1NAT VIA 2]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/local/sbin/ttylinkd  ttylinkd
#
[PE1NAT-2 VIA 2]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node    node
#
[PE1NAT-2 VIA kiss]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node    node
#
[PE1NAT-2 VIA axip0]
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node    node axip0 %s
#
#[PE1NAT-3 VIA 2]
#NOCALL   * * * * * *  L
#default  * * * * * *  -        root  /usr/local/sbin/axwrapper axwrapper
/usr/bin/finger finger
#
# NET/ROM Ports begin with a '<'.
#
#<netrom>
#NOCALL  * * * * * *  L
#default * * * * * *  - root  /usr/local/sbin/ttylinkd  ttylinkd
#
<netrom>
NOCALL   * * * * * *  L
default  * * * * * *  - root  /usr/sbin/node    node
#

#
# ax25ipd configuration file for station floyd.vk5xxx.ampr.org
#
# Select axip transport. 'ip' is what you want for compatibility
# with most other gateways.
#
socket ip
#
# Set ax25ipd mode of operation. (digi or tnc)
#
mode tnc
#
# If you selected digi, you must define a callsign.  If you selected
# tnc mode, the callsign is currently optional, but this may change
# in the future! (2 calls if using dual port kiss)
#
#mycall vk5xxx-4
#mycall2 vk5xxx-5
#
# In digi mode, you may use an alias. (2 for dual port)
#
#myalias svwdns
#myalias2 svwdn2
#
# Send an ident every 540 seconds ...
#
#beacon after 540
#btext ax25ip -- tncmode rob/vk5xxx -- Experimental AXIP gateway
#
# Serial port, or pipe connected to a kissattach in my case
#
device /dev/ttyq0
#
# Set the device speed
#
speed 9600
#
# loglevel 0 - no output
# loglevel 1 - config info only
# loglevel 2 - major events and errors
# loglevel 3 - major events, errors, and AX25 frame trace
# loglevel 4 - all events
# log 0 for the moment, syslog not working yet ...
#
loglevel 2
#
# If we are in digi mode, we might have a real tnc here, so use param to
# set the tnc parameters ...
#
#param 1 20
#
# Broadcast Address definition. Any of the addresses listed will be forwarded
# to any of the routes flagged as broadcast capable routes.
#
broadcast QST-0 NODES-0
#
# ax.25 route definition, define as many as you need.
# format is route (call/wildcard) (ip host at destination)
# ssid of 0 routes all ssid's
#
# route <destcall> <destaddr> [flags]
#
# Valid flags are:
#         b  - allow broadcasts to be transmitted via this route
#         d  - this route is the default route
#
route pe1nat-4 192.168.0.2 b
route vk5xxx 44.136.188.221 b
route vk2abc 44.1.1.1
#
#


#! /bin/sh
#
# rc.ax25       This shell script boots up the AX.25 and NET/ROM systems.
#
echo AX25 setup...
#
IPADDR="44.137.16.27"
NETMASK="255.0.0.0"
NETWORK="44.0.0.0"
BROADCAST="44.255.255.255"
GATEWAY="44.137.16.71"
NOS="44.137.16.38"

echo enable ip_forward...
echo 1 > /proc/sys/net/ipv4/ip_forward

echo Attach interfaces...
# Attach interfaces
/usr/sbin/kissattach /dev/ttyS0 kiss ${IPADDR}
/usr/sbin/kissattach /dev/ptyq0 axip0 192.168.0.1
/usr/sbin/spattach /dev/ttyS3 2 ${IPADDR}
/usr/sbin/nrattach -i ${IPADDR} netrom
/usr/sbin/nrattach -i ${IPADDR} netbbs

echo Configure interfaces...
# Configure interfaces
/sbin/ifconfig ax0 ${IPADDR} hw ax25 PE1NAT-14 netmask ${NETMASK} broadcast
${BROADCAST} mtu 256
/sbin/route add -net ${NETWORK} gw ${GATEWAY} netmask ${NETMASK}
/usr/sbin/arp -i sp0 -t ax25 -s ${GATEWAY} PI1WFL-9
echo Start AX.25 and NET/ROM daemons ...
# Start AX.25 and NET/ROM daemons
/usr/sbin/ax25d &
sleep 3 &
/usr/sbin/netromd -i -l 100 -t 30 &
sleep 3 &
mheardd &
sleep 3
/usr/local/fbb/xfbb.sh -d &
sleep 10
/home/aprsd2/rc.aprsd &
sleep 5
/usr/sbin/ax25ipd &
# Set uid mapping
# Clear login files
#> /var/ax25/node/loggedin
#> /var/ax25/pms/loggedin
# EOF

--

Name: Ed van Mol
Email: [EMAIL PROTECTED]
HTTP: //www.evmhhw.demon.nl

Reply via email to