Examples forward JNOS/BPQ/LinFBB

Here below some examples how the configuration of the forward in different systems works.

Thanks in particular to Bob (VE3TOK) and Gus (I0OJJ) for example configs !

Copyright ©  http://www.langelaar.net/jnos2/

Example Configuration for JNOS 2.0k side
   ----------------------------------------

      a) autoexec.nos

         # regular listener (no IAC) for remote JNOS and BPQ systems
         start telnet

         # another listener (IAC) on different port for LINFBB and OBCM systems
         start telnet 6300 iac

         # for winlink secure login, you have to configure your callsign
         mbox winlinkcall ve4klm

      b) spool/forward.bbs

         -------
         ve3tok
         # Here we are talking to a remote LINFBB system
         telnet 44.x.y.z 6300 iac
         +Callsign :
         .ve4klm
         +Password :
         .BLAHBLAHBLAH
         ve3tok
         -------
         va3tok
         # Here we are talking to a remote BPQ system
         telnet 44.x.y.z 8011 cronly
         .ve4klm
         .BLAHBLAHBLAH
         +BPQ
         .BPQBBS
         va3tok
         -------
         wl2k
         # Here we are talking to Winlink CMS server
         telnet winlink.org 8772 cronly
         +Callsign :
         ..VE4KLM
         +Password :
         .BLAHBLAH
         wl2k
         -------
         i0ojj 0023 P
         # Here we are talking to obcm v1.07b12
         # NOTE : OBCM supports FC proposal, so it will use B2F, but wonder if
         # I should force a B1F response so RLINE and Headers work properly ?
         telnet 44.x.y.z 4719 iac
         @10
         +login:
         .ve4klm
         @10
         +password:
         .BLAHBLAH
         @10
         <areas to forward>
         -------
         ir0aab 0023 P
         # Here we are talking to linfbb v7.0.8-beta2
         telnet 44.x.y.z 6300 iac
         @
         +Callsign :
         .ve4klm
         +Password :
         .BLAHBLAH
         @
         <areas to forward>
         -------

      c) setting up MY winlink authentication

         cd /jnos

         mkdir users		* you only need to do this one time

         ./jnospwmgr -a <callsign> -w

         it will ask you to enter the phrase that you would have received
         from your winlink notice (the challenge/response phrase).         

       * for now please read release notes (search December 8) for more info.

   Remote LINFBB host
   ------------------

     For forwarding to VE4KLM I added the following line to 'bbs.sys' :

       < FWD\VE4KLM

     A forward file for that particular bbs is placed in FBB's 'fwd' directory,
     so an example of forward file, 've4klm' (contents might be different for
     other FBB owners.)

       A VE4KLM

         P A
         C C ve4klm ve4klm.ampr.org 6300
         V login$Wpassword$W

       #  Forward file -- To VE4KLM BBS (JNOS)
       #
       #  Personal mail
       #
       B VE4KLM
       F VE4KLM
       #
       # Reverse fowarding to take place
       R
       # Forward rest of North-America to VE4KLM
       H  VE4KLM.#WPG.MB.CAN.NOAM
       H *.NOAM
       #

   Remote BPQ host
   ---------------

     This is needed as telnet connect script for bpq in forwarding with jnos.
     It is entered in the "connect script" box of the forwarding config web
     page of the bpq mail server.

       TIMES 0000-2359
       Idletime 60
       attach 3
       c ve4klm.ampr.org 23 NEEDLF .login pass

     General:

       attach p - p is a port number cfg'd as telnet port in your bpq32.cfg

       c Hostname TCPport [NEEDLF] User Password [Command]

     Here :

       attached 3 - I configured port 3 as telnet port
       NEEDLF     - Causes a Line Feed to be sent after user and password.
       .login     - The period before the login user name will tell jnos to use
                    a transparent TCP session instead of ordinary telnet.

     See: http://www.cantab.net/users/john.wiseman/Documents/TelnetServer.htm

     This example line below is needed in bpq32.cfg so that jnos can login into
     bpq and initiate forwarding as bbs.
 
       USER=ve4klm,password,login,BBS

   Remote OBCM host
   ----------------

     ; From obcm v1.07b12
     ;
     ; INIT IR0RM file (JNOS-2.0k+)
     ;          0                  1                  2
     ;          012345678901234567890123
     IR0RM PPPPPPPPPPPPPPPPPPPPPPPP TELNET:44.x.y.z:6300
      -d -k -l -o -u
     ;

   Remote LINFBB host
   ------------------

     # From linfbb v7.0.8-beta2
     #
     IF H 00-23
      S connected failure busy
      C C IR0RM-1 44.x.y.z 6300
      V i0ojj$Wpassword$W
     ENDIF
     #

 

Installing BPQ on the Raspberry Pi and TNC-Pi or Beaglebone Black and TNC-Black

Willem AC0KQ heeft een grafische bpq-config programmaatje schreven. Hier onder de uitleg.
(bron http://www.prinmath.com/ham/bpqHOWTO.htm)

Tevens is er een Quickstart guide http://www.prinmath.com/ham/howto/quickstart/

Het perl script wat Willem AC0KQ heeft geschreven http://www.prinmath.com/ham/bpq-config

Willem A. Schreüder AC0KQ

The purpose of this HOWTO is to describe how to install BPQ on a Linux Single
Board Computer (SBC) such as the Raspberry Pi or Beaglebone Black.

BPQ is a very sophisticated NET/ROM compatible packet switch written by John
Wiseman G8BPQ. BPQ can be configured to be a sophisticated Packet BBS, a
WinLink2000 RMS gateway, an APRS iGate, or any combination of these.

One of the hurdles to setting up BPQ is that the configuration file can be
rather difficult to set up. To ease this, this HOWTO uses a program named
bpq-config which makes it easy to create the initial configuration.
While bpq-config is primarily intended to create the initial
configuration file which you can then modify, it is actually capable of creating
a fairly sophisticated configuration file using a menu-driven interface.

Much more detail about BPQ are provided at
G8BPQ Home Page

At this time bpq-config only supports the Raspberry Pi and Beagle Bone
Black with John Hansen’s TNC-Pi and TNC-Black. This is because these are fairly
predictable environments. However, with little modification bpq-config
can also be used with other systems.

If you have any corrections or comments about this HOWTO or bpq-config, please
email me. I get lots of junk mail, so
add BPQ to the subject line to get it by my spam filters.

Authorization

If you want to use BPQ as an RMS gateway to WinLink, you need to obtain authorization from the WinLink folks. See this link on how to do that.

To send APRS position reports to the APRS-IS via the APRS Tier 2 Network a
password is required. However, bpq-config contains a function to
generate that password for you, so no additional authorization is required.

Computer Hardware

The Raspberry Pi and Beaglebone Black are available from numerous sources. The
price for a Raspberry Pi 2 or 3 is $35 from mail order vendors such as
MCM Electronics.

The Raspberry Pi B or B+ is sufficiently fast to run BPQ, so you can use that if
you happen to have one. The TNC-Pi works with all of these models.

The Raspberry Pi has the advantage of a very active user community, which makes
it the best supported device. The disadvantage of the Raspberry Pi is that it
has only one serial port, so if you want to use more than one TNC you need to
use the I2C bus to address the TNCs, which requires a bit more work.

The Beaglebone Black is has a street price around $50. It has the advantage of
a more mechanically stable mounting arrangement and four serial ports which
makes multiple TNC easy to mount and use.

The disadvantage of the Beagle Bone black is that it is not as well supported as
the Raspberry Pi so getting it configured is a bit more work.

TNC Hardware

  • The TNC-Pi is available at Coastal Chipworks
    either built or as a kit. Get the kit, it is easy to build and lots of fun.
    The instructions are almost as good as the old Heathkit manuals.
  • For most locations you need some sort of enclosure. I use the Bud
    Industries Pi Sandwitch which allows the Raspberry Pi and TNC Pi pair to be
    mounted.
  • The rPi runs on 5V, so for a 12V system you need a converter to supply 5V
    at 1A continuously. The 7805 style regulators generate a lot of heat at that
    current so I use the Murata 78SRH-5/2-C instead, which will work for input
    voltages from 8-32V DC. I use a right angle Micro USB cable which I cut to
    wire for power. If the cable uses standard color codes, white and red are data
    which you can ignore, red and black are positive and negative.
  • The rPi needs an SD card to store the software. The Model B uses a
    standard size SD, the Model B+ uses the Micro SD format. A high speed and
    reliable card is critical, so getting a 16GB Class 10 card is recommended. The
    bigger card should last longer since the wear is spread over a larger space.
    Get a spare since the cards do wear out eventually.

    Configuring the OS

    Raspbian switch to systemd starting with jessie (Debian 8). These instructions will work
    only with this latest version of Raspbian. For older versions see
    these instructions.

    • Download Raspbian which is
      Debian for the Raspberry Pi. There are several other OS versions, but this one is my
      choice as a pretty vanilla Linux distro. Unzip the image from the ZIP file and follow

      these instructions
      to burn the image to the SD card.
    • Insert the card into the Pi and boot it. You can either
      • Connect a keyboard and monitor and log in directly.
      • Connect the pi to a network running DHCP and ssh into it. The hostname willshow up as RASPBERRY in the DHCP leases on your router.
    • Log in to the computer using user name pi and password raspberry.
    • Run sudo raspi-config
      • Expand Filesystem
      • Change User Password
      • Internationalisation (set time zone)
      • Advanced options (hostname)
    • Install new packages
      • sudo apt-get install vim telnet minicom i2c-tools libpcap0.8
    • Add new user with administrative privilidges
      • sudo adduser username
      • sudo adduser username sudo
    • Free up the serial line the TNC-Pi will use.
      • sudo systemctl mask serial-getty@ttyAMA0.service
    • Reboot the system to make sure the serial line is released.
      • sudo reboot

    Install and configure BPQ

    • Log in using the new user created above.
    • Create the BPQ sub-directory
      • mkdir BPQ
      • cd BPQ
    • Download bpq-config, make it executable and run it
      • wget http://www.prinmath.com/ham/bpq-config
      • chmod a+x bpq-config
      • sudo ./getbpq
    • bpq-config is menu-driven, so just follow the menus.Generally you would do the following things.
      1. Download the BPQ software.
      2. Configure BPQ
        1. Configure the node.
        2. Configure one or more ports.
        3. Configure one or more telnet users.
        4. Optionally add one or more AXIP node maps.
        5. Write the configuration.
      3. Start BPQ and test it.
      4. Set BPQ to automatically start on boot.

    Using BPQ

    • Connect to BPQ using your web browser by typing inhttp://X.X.X.X:8008/on the URL bar, where X.X.X.X is the IP address of your BPQ node
    • You can connect to BPQ node from any computer on the LAN usingtelnet X.X.X.X 8010
  • Log in using your BPQ user name and password set for the Telnet user.

HOW TO install linbpq on a Raspberry Pi

Write jessie image to SD Card

Bootup RPi and connect to your WLAN and change the Raspberry Pi Configuration:
– expand file system
– rename host name
– enable I2C interface
– set keyboard to United States, English (US, with euro on 5)
– set timezone Europe Amsterdam
reboot the RPi

update system

sudo apt-get update
sudo apt-get upgrade

Reboot your Pi

sudo reboot now

Instructions can also be found on http://www.cantab.net/users/john.wiseman/Documents/InstallingLINBPQ.htm

sudo mkdir linbpq
cd linbpq
sudo wget http://www.cantab.net/users/john.wiseman/Downloads/Beta/pilinbpq
sudo mv pilinbpq linbpq
sudo chmod +x linbpq

If you want to use UDP or TCP ports below 1024, or the BPQEther Driver, you must also set some capabilites on the file
(or run as root, wihch is not advisable). You may need to install setcap if it isn’t already on your system – sudo apt-get install libcap2-bin
or the equivalent for your disatribution.

sudo setcap “CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep” linbpq

You also need some web pages for the management interface. Create directory HTML (capitals) under your linbpq directory, and download and unzip
https://dl.dropbox.com/u/31910649/HTMLPages.zip into it.

sudo mkdir HTML
cd HTML
sudo wget https://dl.dropbox.com/u/31910649/HTMLPages.zip
sudo unzip HTMLPages.zip

 

The Web server is configured in a similar way to the UI-View web server, although there are minor differences. The “Base Directory” for pages and files is
folder BPQAPRS/HTML, under your BPQ32 Data Directory. The simplest way to get it working is to take a set of pages, and tailor them to your requirements. A
typical set may be downloaded from http://www.cantab.net/users/john.wiseman/Documents/Samples/APRSHTML.zip

cd ~/linbpq
sudo mkdir BPQAPRS
cd BPQAPRS
sudo wget http://www.cantab.net/users/john.wiseman/Documents/Samples/APRSHTML.zip
sudo unzip APRSHTML.zip

Change the rights for linbpq to pi:pi

cd ~
sudo chown -R pi:pi linbpq

Configuring linbpq

The linbpq software is configured by the file /home/pi/linbpq/bpq32.cfg. The configuration is well described in the documentation. See example for my bpq32.cfg file

sudo nano /home/pi/linbp/bpq32.cfg

Run linbpq for the first time

cd ~/linbpq
sudo -u pi ./linbpq

Create a script /home/pi/linbpq/runbpq containing:

cd /home/pi/linbpq
sudo -u pi mv linbpq.new linbpq
sudo -u pi ./linbpq >/dev/tty2

make it executable

sudo chmod +x /home/pi/linbpq/runbpq

Add user pi to group tty

sudo adduser pi tty

Create file /etc/systemd/system/linbpq.service containing:

[Unit]
After=network.target

[Service]
ExecStart=/bin/bash /home/pi/linbpq/runbpq
Restart=always

[Install]
WantedBy=multi-user.target

 

To start the service at bootrun command:
sudo systemctl enable linbpq.service

To stop the service at boot run command:
sudo systemctl disable linbpq.service

To restart the service at boot run command:
sudo systemctl restart linbpq.service

####################
You need to run setcap each time you download a new version of linbpq.

cd linbpq
sudo setcap “CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep” linbpq

 

Bpq32 ardop Config

Configuration example of ardop with BPQ32.

;
;	Sample Config for a ARDOP Port
;
PORT
 PORTNUM=7
 PORTCALL=PI1LAP                    ; This is the call sent to the ARDOP modem
 ID=ARDOP
 TYPE=EXTERNAL
 DLLNAME=ARDOP
 INTERLOCK=1
 CONFIG

 ADDR 127.0.0.1 8515 PTT RTS PATH C:\ARDOP_Chat\ARDOPC.exe
 RIGCONTROL 
 COM2 19200 ICOM IC700 70
 25,7.04730,USB,F3
 5,7.045,USB,F3,D
 ****
 
 CWID FALSE															 
 BUSYHOLD 1                              
 BUSYWAIT 20                             
 GRIDSQUARE JO11VN
 DRIVELEVEL 100
 DEBUGLOG FALSE
 CMDTRACE FALSE
 FECMODE 4PSK.500.100
 FECREPEATS 1
 ARQBW 1000MAX							 
 										 
 ARQTIMEOUT 90

   
ENDPORT
;

Aanpassen MH lijst Linbpq

Nu irriteer ik me mateloos aan de mh lijst van Linbpq. Dus ben ff druk geweest met het aanpassen van de lijst. Op regel 3285 van het bestand Cmd.c van de linbpq-source kom je het volgende tegen.

	}
	else
		Bufferptr += sprintf(Bufferptr, "Heard List for Port %dr", Port);

	while (n--)
	{

En op regel 3367 het volgende.

	if (CMD->String[2] == 'V')		// MHV
			Bufferptr += sprintf(Bufferptr, "%-10s %d %s %sr", Normcall, MH->MHCOUNT, ptr, DigiList);
		else
			Bufferptr += sprintf(Bufferptr, "%-10s %s %sr", Normcall, ptr, DigiList);

		MH++;

Daar heb ik het volgende van gemaakt. Regel 3285

	}
	else
		Bufferptr += sprintf(Bufferptr, "MHeard List PI1LAP for Port %dr", Port);
		Bufferptr += sprintf(Bufferptr, "Callsign   Last heard     Pkts RX    via Digi ;) r");
		Bufferptr += sprintf(Bufferptr, "---------  -----------    -------    ------------------------------------------r");

	while (n--)
	{

En op regel 3367

		if (CMD->String[2] == 'V')		// MHV
			Bufferptr += sprintf(Bufferptr, "%-10s %-10s %-10d %-30s %sr", Normcall, ptr, MH->MHCOUNT, DigiList, MH->MHFreq);
		else
			Bufferptr += sprintf(Bufferptr, "%-10s %-10s %-10d %-30s %sr", Normcall, ptr, MH->MHCOUNT, DigiList, MH->MHFreq);
					
		MH++;

Nou je mag oordelen wat je mooier vindt.

Mh lijst standaard

Mh lijst aangepast

Ik heb aan John GM8BPQ gevraagd of dit standaard kon worden. Helaas is hij van mening dat dit te veel data op rf genereert. Dus je bent genoodzaakt om steeds de source aan te passen als er een nieuwe versie uitkomt.

ps Danny ik heb ff je mh-lijst misbruikt 🙂

Linbpq bpq32.cfg

Hier onder de configuratie die ik gebruik voor Linbpq.

/* 
Packet/Switch netwerk Kortgene. 
*/

LOCATOR=JO11VN
MAPCOMMENT=PI1LAP Network Node, Kortgene JO11VN

PASSWORD=**********

NODECALL=PI1LAP-15	; Node callsign
NODEALIAS=LAPNET ; Node alias (6 characters max)

IDMSG:
Winlink Gateway PI1LAP-10
***

BTEXT:				; UI broadcast text from BCALL to destination UNPROTO=
=5133.52N/00348.15En PI1LAP-15 Switch Node, BBS/APRS/AMPR/DXspider/RMS-(PI1LAP-10) Gateway. 
***

INFOMSG:			; The INFO command text follows:

PI1LAP LinBPQ Packet/Switch Node

Computer : Optiplex GX280
Software : Debian GNU/Linux 7 3.2.0-4-686-pae  / Linbpq 6.0.13.1
Rx/Tx    : Kenwood IC-F1010 / Yaesu FT7800
Modem    : Mfj 1278b / tnc7multi
Antenne  : X50n / X30n

Sysop Niels Ruiter

Ax25-mail   : pd2lt@pi8lap.#zl.nld.euro 
AMPR mail   : pd2lt@pi1lap.pd2lt.ampr.org
E-mail      : pd2lt@packet-radio.net

Have Fun
***
CTEXT:				; The CTEXT text follows:
Connected to PI1LAP-15.
Packet/Switch Node, Kortgene JO11VN 

RMS : Winlink packet Gateway
Dx  : Dxspider Cluster

LAPNET:PI1LAP-15} APP,RMS,DX,CHAT,C,B,I,N,R,P,U,V,S,MH
***			; Denotes end of CTEXT text

FULL_CTEXT=1		; 0=send CTEXT to L2 connects to NODEALIAS only
			; 1=send CTEXT to all connectees
OBSINIT=6		; Initial obsolescence set when a node is included
			; in a received nodes broadcast. This value is then
			; decremented by 1 every NODESINTERVAL.
OBSMIN=4		; When the obsolescence of a node falls below this
			; value that node's information is not included in
			; a subsequent nodes broadcast.
LogL4Connects=1
NODESINTERVAL=15	; Nodes broadcast interval in minutes
IDINTERVAL=10		; 'IDMSG' UI broadcast interval in minutes, 0=OFF
BTINTERVAL=60		; The BTEXT broadcast interval in minutes, 0=OFF
L3TIMETOLIVE=25		; Max L3 hops
L4RETRIES=3		; Level 4 retry count
L4TIMEOUT=60		; Level 4 timeout in seconds s/b > FRACK x RETRIES
L4DELAY=10		; Level 4 delayed ack timer in seconds
L4WINDOW=4		; Level 4 window size
MAXLINKS=63		; Max level 2 links
MAXNODES=1024		; Max nodes in nodes table
MAXROUTES=128		; Max adjacent nodes
MAXCIRCUITS=1024	; Max L4 circuits
MINQUAL=100		; Minimum quality to add to nodes table
; INP3 Routing is experimental.  The two parms which follow will be ignored
; unless activated in the ROUTES: section.
MAXHOPS=10		; INP3 hop limit to add to tables
MAXRTT=90		; INP3 max RTT in seconds
BUFFERS=255		; Packet buffers - 255 means allocate as many as
			; possible, normally about 130, depending upon other
			; table sizes.

; TNC default parameters:

PACLEN=128		; Max packet size (236 max for net/rom)
; Level 2 Parameters:
; T1 (FRACK), T2 (RESPTIME) and N2 (RETRIES) are now in the PORTS section
T3=120			; Link validation timer in seconds
IDLETIME=10000		; Idle link shutdown timer in seconds

; Configuration Options:

AUTOSAVE=1		; Saves BPQNODES.dat upon program exit
BBS=1			; 1 = BBS support included, 0 = No BBS support
NODE=1			; Include switch support
HIDENODES=1		; If set to 1, nodes beginning with a #
			; require a 'N *' command to be displayed.

; The *** LINKED command is intended for use by gateway software, and concern
; has been expressed that it could be misused. It is recommended that it be
; disabled (=N) if unneeded.

ENABLE_LINKED=A		; Controls processing of *** LINKED command
			; Y = allows unrestricted use
			; A = allows use by application program
			; N = disabled

; Port Definitions:

PORT
 PORTNUM=1			; Optional but sets port number if stated
 ID=144.850Mhz		        ; Displayed by PORTS command
 TYPE=ASYNC			; Port is RS232 Com
 PROTOCOL=KISS			; TNC is used in KISS, JKISS or BPQKISS mode
 FULLDUP=0			; Only meaningful for KISS, JKISS or BPQKISS devices
 COMPORT=/dev/ttyUSB0
 SPEED=9600			; RS232 COM PORT SPEED
 CHANNEL=A			; A for single channel TNC, A or B for multichannel
 NOKEEPALIVES=0
 PERSIST=160			; PERSIST=256/(# of transmitters-1)
 SLOTTIME=180			; CMSA interval timer in milliseconds
 TXDELAY=180			; Transmit keyup delay in milliseconds
 TXTAIL=23			; TX key down, in milliseconds, at packet end
 QUALITY=192			; Quality factor applied to node broadcasts heard on
				; this port, unless overridden by a locked route
				; entry. Setting to 0 stops node broadcasts
 MINQUAL=100			; Entries in the nodes table with qualities greater or
				; equal to MINQUAL will be sent on this port. A value
				; of 0 sends everything.
 MAXFRAME=4			; Max outstanding frames (1 thru 7)
 FRACK=5000			; Level 2 timout in milliseconds
 RESPTIME=1000			; Level 2 delayed ack timer in milliseconds
 RETRIES=25			; Level 2 maximum retry value
 PACLEN=128			; Default max packet length for this port
 UNPROTO=APBPQ1,PI1LAP       ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
 BCALL=PI1LAP-15   		; BTEXT call. unstated defaults to APPL1CALL
 L3ONLY=0			; 1=No user downlink connects on this port
 DIGIFLAG=1			; Digipeat: 0=OFF, 1=ALL, 255=UI Only
 DIGIPORT=0			; Port on which to send digi'd frames (0 = same port)
 USERS=0			; Maximum number of L2 sessions, 0 = no limit
ENDPORT

PORT
 PORTNUM=2                     ; Optional but sets port number if stated
 ID=430,950MHz            ; Displayed by PORTS command
 TYPE=ASYNC                    ; Port is RS232 Com
 PROTOCOL=KISS                 ; TNC is used in KISS, JKISS or BPQKISS mode
 FULLDUP=0                     ; Only meaningful for KISS, JKISS or BPQKISS devices
 COMPORT=/dev/ttyUSB0
 SPEED=9600                   ; SERIAL PORT SPEED, NOT RADIO DATA SPEED.
 CHANNEL=B                     ; A for single channel TNC, A or B for multichannel
 PERSIST=255                   ; PERSIST=256/(# of transmitters-1)
 SLOTTIME=100                  ; CMSA interval timer in milliseconds
 TXDELAY=300                   ; Transmit keyup delay in milliseconds
 TXTAIL=30                     ; TX key down, in milliseconds, at packet end
 QUALITY=192                    ; Quality factor applied to node broadcasts heard on
                                ; this port, unless overridden by a locked route
                                ; entry. Setting to 0 stops node broadcasts
                                ; With QUALITY=0, the value of MINQUAL is irrelevant
 MINQUAL=100                   ; Entries in the nodes table with qualities greater or
                                ; equal to MINQUAL will be sent on this port. A value
                                ; of 0 sends everything.
 MAXFRAME=4                    ; Max outstanding frames (1 thru 7)
 FRACK=5000                    ; Level 2 timout in milliseconds
 RESPTIME=1000                 ; Level 2 delayed ack timer in milliseconds
 RETRIES=25                     ; Level 2 maximum retry value
 PACLEN=128                    ; Default max packet length for this port
 UNPROTO=APBPQ1,PI1LAP         ; BTEXT broadcast addrs format: DEST[,digi1[,digi2]]
 BCALL=PI1LAP                   ; BTEXT call. unstated defaults to APPL1CALL
 L3ONLY=0                      ; 1=No user downlink connects on this port
 DIGIFLAG=1                    ; Digipeat: 0=OFF, 1=ALL, 255=UI Only
 DIGIPORT=0                    ; Port on which to send digi'd frames (0 = same port)
 USERS=0                       ; Maximum number of L2 sessions, 0 = no limit
ENDPORT


; AX/IP/UDP port definition.

PORT
 PORTNUM=3		; Optional but sets port number if stated
 ID=AX/IP/UDP		; Displayed by PORTS command
 DRIVER=BPQAXIP		; Uses BPQAXIP capability of bpq32.dll
 QUALITY=255		; Quality factor applied to node broadcasts heard on
			; this port, unless overridden by a locked route
			; entry. Setting to 0 stops node broadcasts
 MINQUAL=192		; Entries in the nodes table with qualities greater or
			; equal to MINQUAL will be sent on this port. A value
			; of 0 sends everything.
 MAXFRAME=7		; Max outstanding frames (1 thru 7)
 FRACK=3000		; Level 2 timout in milliseconds
 RESPTIME=1000		; Level 2 delayed ack timer in milliseconds
 RETRIES=5		; Level 2 maximum retry value
 PACLEN=236		; Max = 236

CONFIG			; BPQAXIP.cfg has been deprecated.  Instead the AXIP
			; configuration occurs here:
 MHEARD ON		; Opens AXIP MHEARD window
 UDP 10094		; Listens for UDP packets on this UDP port number
; UDP 93			; Listens for UDP packets on this UDP port number
; AUTOADDMAP		; This option automatically adds the node call and
			; address of a node for which you do not have a
			; pre-arranged fixed entry in bpqaxip.cfg.  If the 
			; option DONTCHECKSOURCECALL is specified then the
			; AUTOADDMAP option is ignored.
 BROADCAST NODES
 BROADCAST QST

MAP PI1SNK ip-adres pi1snk UDP 10094
MAP PI1DXC-15 ip-adres pi1dxc UDP 93 B
MAP PI1DEC-14 ip-adres pi1dec UDP 93
MAP PI1LAP ip-adres link local UDP 93 B

ENDPORT

; Radio port definitions.

PORT
 PORTNUM=4			; Optional but sets port number if stated
 ID=Telnet
 DRIVER=Telnet
 PORTCALL=PI1LAP-10

CONFIG
 CMS=1
 CMSCALL=PI1LAP
 CMSPASS=********
 LOGGING=1
 DisconnectOnClose=1
 CMDPORT 7400 63000
 TCPPORT=6323
 FBBPORT=6300
 HTTPPORT=9180
 LOGINPROMPT=User:
 PASSWORDPROMPT=Password:
 MAXSESSIONS=10
 CTEXT=Welcome to PI1LAP`s Telnet Server.\nPress ? For list of commands \n\n
 USER=pd2lt,********,PD2LT,,SYSOP
 USER=pd2nlx,*******,PD2NLX,,SYSOP
ENDPORT

PORT
 PORTNUM=5
 ID=LOOPBACK
 TYPE=INTERNAL
 PROTOCOL=KISS
 CHANNEL=A
 QUALITY=255
 MAXFRAME=6
 FULLDUP=0
 FRACK=10000
 RESPTIME=3000
 RETRIES=10
 PACLEN=200
 TXDELAY=500
 SLOTTIME=100
 PERSIST=64
 DIGIFLAG=1
 UNPROTO=APBPQ1,PI1LAP-11
 BCALL=PI1LAP-15
ENDPORT


PORT
 PORTNUM=6
 ID=Link tnn
 TYPE=ASYNC
 PROTOCOL=KISS
 QUALITY=255
 COMPORT=/dev/com6
 CHANNEL=A
 SPEED=9600
 MAXFRAME=7
 FRACK=5000
 RESPTIME=1000
 RETRIES=10
 PACLEN=128
ENDPORT

;PORT
; PORTNUM=7
; ID=Link RMS
; TYPE=ASYNC
; PROTOCOL=KISS
; QUALITY=255
; COMPORT=/dev/com7
; CHANNEL=A
; SPEED=9600
; MAXFRAME=6
; FRACK=5000
; RESPTIME=1000
; RETRIES=10
; PACLEN=236
;ENDPORT



ROUTES:				; Locked routes (31 maximum)
; CALLSIGN,QUALITY,PORT[,MAXFRAME,FRACK,PACLEN,INP3Enable]
PI1SNK,1,3,1,0,0,1
PI1DXC-15,255,3
PE1PLM-14,192,1
PI1LAP,1,1,0,0,0,1		; BPQ AX/UDP on Multiple_Apps System
***					; Denotes end of locked routes
;
IPGATEWAY

Adapter eth0                   # Linux

44ENCAP 192.168.1.220          # Enable AMPRNET Tunnels and RIP44
IPAddr 44.137.31.70            # IP address of BPQ32
IPNetmask 255.255.255.224      # Netmask 
IPPorts 1,3                # BPQ Ports to be used for links to IP systems. List of ports, separated by commas

;NAT 44.137.31.66 192.168.1.238   # inet.pd2lt.ampr.org (www,ftp)
;NAT 44.137.31.81 192.168.1.222	 # hamnet.pd2lt.ampr.org (hamnet access)
;NAT 44.137.31.67 192.168.1.112	 # jnos.pd2lt.ampr.org (jnos)
;NAT 44.137.31.67 192.168.1.222   # aprs.pd2lt.ampr.org (aprsc server)
;NAT 44.137.31.69 192.168.1.213	 # sys1.pd2lt.ampr.org (windows 7)

;ARP 44.131.31.67 PI1LAP-2 1 D     # 44.131.56.6 is reachable over radio port 1
;ARP 44.137.31.67 PI8LAP-1 1 D
;ARP 44.147.31.67 PI1LAP-14 3 D
ARP 44.137.56.106 PI1SNK 3 D     # ARP entry for Gateway below
ROUTE 44.137.56.0/22 44.137.56.106 # All subnet 44.131.11.0/29  is reachable over radio link 1 to GM8BPQ-7

route addprivate 44.137.31.64/27 encap 82.176.25.213  # AMPRNET Tunnel route
;route addprivate 44.137.31.72/29 encap 149.210.235.143 # Link vpn ipip tunnel vpn-server
;route addprivate 44.137.31.89/29 encap 149.210.215.162 # Link www server tunnel vps
*****

APRSDIGI

 APRSCall=PI1LAP-11
 StatusMsg=PI1LAP-11 APRS Digi  RX-only .

 Symbol=&         ; Icon to display for station.
 Symset=I         ; This is a "B" in a Red Diamond. 

 ;
 ;    Specify a Dest Addreess and Path for each port you want to use for APRS. No dest means receive only port
 ;    Ports without an APRSPath statement will not be used by the Digi
 ;
 ;    Note if you specify APRS as the destination call it will be replaced by the current BPQ32 APRS
 ;    identification destination - APBPQ1. If you really want to send APRS, specify APRS-0. 
 
  ;APRSPath 2=APRS                         ; Receive only port
  APRSPath 1=APRS,WIDE1-1,WIDE2-1             ; Dest and up to 8 digis
;  APRSPath 2=APRS,WIDE1-1,WIDE2-1
  APRSPath 5=APRS,WIDE1-1,WIDE2-1
  
  BeaconInterval=20                   ; Send Beacon every 30 minute. Minimum is 5 mins
  MAXAGE=120
  MobileBeaconInterval=2              ; Beacon interval when moving

 ;    Define Crossport Digi. For each port, a list of ports to send a packet to (IS means send to APRS-IS)
 ;    If a Digimap isn't specified for a port, digi out on the port the packet arrived on,
 ;        and send to APRS-IS (if enabled)
 ;    If you want to digi on same port, but not send to APRS-IS, Specify Digimap n=n 
 ;    If you dont want to digi on a port, specify Digimap n=
 ;
 ;    If you only have one APRS port, you probably don't need a Digimap statement

 
 Digimap 1=1,IS            ; Packets from 1 to 9, but not APRS-IS
 Digimap 5=5,IS       ; Packets from 7 to 7, 9 and APRS-IS
; Digimap 2=2,IS
 
 ;    Define Digipeating parameters
 
 TraceCalls=WIDE,TRACE  ; Calls for CALLN-n Processing with Trace
 FloodCalls=NLD         ; Calls for CALLN-n Processing without Trace
 DigiCalls=ZLD         ; Calls for Normal (ie no SSID manipulation) Digi
                        ; For a Local "Fillin" Digi, you could include WIDE1-1 and leave out TraceCalls and FloodCalls
						
;ReplaceDigiCalls       ; Replace DigiCalls with APRSCall. Omit if you want the call to be left as it is received.
						
 MaxTraceHops=2         ; Max value of n in CALLN-n processing. If a packet is received with n greater than
 MaxFloodHops=2         ; this, the value will be replaced BEFORE it is decremented.

 ;    Specify position. You can specify a fixed LAT/LONG, or use GPS

 LAT=5133.52N           ; Must be in standard APRS Format (ddmm.mmN/S)
 LON=00348.15E          ; Must be in standard APRS Format (dddmm.mmE/W)

 ;GPSPort=/dev/ttyUSB1              ; if specified, lat/lon will be taken from a GPS,
 ;GPSSpeed=4800             ; overriding the values set above.


 ; The Digi can generate Object and Item reports. 
 ; The format is pretty strict - a single space between param=value pairs,
 ; a comma but no spaces in PATH and PORT string.
 ; Minimum interval is 10 mins. You can have as many OBJECT lines as you need.
 ; See thr APRS specification for information on how to format an Object or Item string.

 OBJECT PATH=APRS,WIDE1-1,WIDE2-1 PORT=1,IS INTERVAL=10 TEXT=PI1LAP*111111z5133.52N/00348.15EIPI1LAP Switch Node, BBS/APRS/AMPR/DXspider/RMS-(PI1LAP-10) Gateway.

 ; IGATE Params. If specified you will gate RF packets and your beacons to APRS-IS

 ISHost=194.109.192.235    ; APRS-IS Host Name. May be either an IPV4 or an IPV6 Host
 ISPort=14580              ; Normal port for a filtered feed
 ISPasscode=*******              ; If you don't already have a passcode I can issue you one.
 ;
 ; You can specify a filter command to be sent when you log on to APRS-IS. Normally you don't
 ; need one. The APRS Mapping Application (BPQAPRS) sets a filter when it starts,
 ; and if you aren't running an APRS application, there isn't much point in getting info from APRS-IS
 ;
 ISFilter=m/500              ; Filter Command if needed

; Bridge 1=6
; Bridge 6=1

****

LINMAIL
LINCHAT

APPLICATION 1,BBS,,PI8LAP,LAPBBS,255
APPLICATION 2,CHAT,,PI1LAP-6,LAPCHT,255
APPLICATION 3,RMS,C 4 CMS,PI1LAP-10,LAPRMS,255
APPLICATION 4,DX,C 4 HOST 0 S,PI1LAP-4,LAPDX,255
APPLICATION 5,APP,C 4 HOST 1 S
APPLICATION 6,TNN,C 6 PI1LAP,255
APPLICATION 32,SYSOP