Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
New bpq32 install connection refused
A few things:
?
You stated you are using Direwolf, but your config is setup for a serial "PITNC".
For direwolf, you should be using the Network KISS options to connect your BPQ node to DireWolf.
?
Your port one for DireWolf for 2M should look more like this if DireWolf is running on the same system:
Replace the PORTNUM as needed, IP if running on another device, Port if KISS Listen on direwolf, and beacon call
?
Your DireWolf Config for 2M should look something like this after your Audio/PTT config:
?
With that out of the way, you probably need to enter the following command to allow non root users to use all ports (replace 'pi' with your pi username is different):
?
And gove the executable the right permissions:
?
I'm not familiar with the Ham stack you are running.
It may have a firewall installed you aren't aware of. ?
Try the following commands to open the ports as the root user:
sudo su
?
If the pi is in the same network as the connecting device, your router and it's forwarded ports have nothing to do with it.
NAT/ Port Forwarding is a routing/firewall function to direct traffic from one network to the port of a device on another. If your devices are on the same network (255.255.255.0/24), then the NAT is bypassed anyways as it doesn't need to happen. ?
Not to knock the people who build them, but a lot of those autoinstall config builders and install scripts put a lot of "stuff" into the config files they generate.
Things change over time, and everyone setup is different, and it just usually doesn't go well with BPQ for the config portion. If you are ever to change anything in the future, you will need to understand the config anyways.
?
"I tried browser connection to http://127.0.0.1:8010 and Telnet to 127.0.0.1 8010.? Both of these result in 'connection refused' messages."
So if you you doing this from the Pi itself it may be fine.
But if you are connecting from elsewhere, like in your previous post, you need to use the LAN address of your Pi instead of 127.0.0.1.
You can use "ip a" in a terminal to see it.
?
I recommend you just remove the LinBPQ installation, purge any systemd entries, and start from scratch.?
?
I've written a detailed guide to build your own configuration you can find here:
?
Follow along the above link, and also open:
?
That way you can build your config file, follow along and check Johns Documentation to make sure you don't need to tweak something, or add something.
Being a SysOP, I think it pays to build your own. That way you really understand what each of the lines mean and what they do.
?
|
开云体育The routing trace from the BBS log file should show what routing decisions the BBS made. If you can't see anything send me a copy and I'll have a look.73, John On 15/02/2021 22:52, Carmine Prestia
wrote:
Jeff: |
Carmine Prestia
On Thu, Feb 18, 2021 at 03:21 AM, John G8BPQ wrote:
Ctrl/C closes linbpq. Closing the window doesn't.Ok, I'll remember that. It appears I have linbpq running on the Pi.? Several other area hams have connected to my BBS.? Even though I still don't understand much of this this is progress. Thanks for the help, I'll be back. 73 Carmine, K3CWP |
开云体育Ctrl/C closes linbpq. Closing the window doesn't.73, John On 17/02/2021 22:56, Carmine Prestia
wrote:
John: |
Carmine Prestia
John:
toggle quoted message
Show quoted text
On Wed, Feb 17, 2021 at 04:29 PM, John G8BPQ wrote: You have two (or more) copies of linbpq running. Make sure you kill all copies before restarting (killall linbpq and wait a few seconds for it to close)Ok.? Does closing the terminal window close the application?? Or likewise, does ^C stop the application when it closes the terminal window? Thanks Carmine, K3CWP |
开云体育You have two (or more) copies of linbpq running. Make sure you kill all copies before restarting (killall linbpq and wait a few seconds for it to close)73, John On 17/02/2021 19:03, Carmine Prestia
wrote:
John: |
Carmine Prestia
John:
That looks better! Indeed, and I can get to it from the Pi or one of my other computers. However another error has turned up: G8BPQ AX25 Packet Switch System Version 6.0.21.24 February 2021
Copyright ? 2001-2021 John Wiseman G8BPQ
Current Directory is /home/pi/linbpq
?
Configuration file Preprocessor.
Using Configuration file /home/pi/linbpq/bpq32.cfg
Conversion (probably) successful
?
PORTS 0x21f9c8 LINKS 0x222410 DESTS 0x225310 ROUTES 0x22b8a0 L4 0x22d2a0 BUFFERS 0x233768
?
Initialising Port 01? ? ?TCPKISS IP 127.0.0.1 Port 8001 Chan A?
Initialising Port 02? ? ?Telnet Server bind(sock) failed port 8010 Error 98
bind(sock) failed port 8011 Error 98
bind(sock) failed port 8008 Error 98
?
Initialising Port 03? ? ?AXIP?
Bind Failed for UDP socket 10093 - error code = 98Starting Mail
Config File is /home/pi/linbpq/linmail.cfg
Config Processed
Mail Started
slave device: /dev/pts/8. symlink to /home/pi/BPQ/com10 created
TNC Emulator Init Complete
The red is my highlighting. ?
You may be able to find what Direwolf is complaining about by turning on KISS Network debugging by adding -d n to the direwolf command line.I did that but it did not seem to return any information.?? Carmine, K3CWP |
开云体育That looks better!You may be able to find what Direwolf is complaining about by turning on KISS Network debugging by adding -d n to the direwolf command line. 73, John On 17/02/2021 01:51, Carmine Prestia
wrote:
Progress! |
Carmine Prestia
Progress!
toggle quoted message
Show quoted text
On Tue, Feb 16, 2021 at 08:48 AM, John G8BPQ wrote: ? COMPORT=/dev/ttyAMA0? ? ? ? ? ? ? ? ? ? ? ? ? ; Serial portI made the above change and when I started linbpq I get this: BPQ AX25 Packet Switch System Version 6.0.21.24 February 2021
Copyright ? 2001-2021 John Wiseman G8BPQ
Current Directory is /home/pi/linbpq
?
Configuration file Preprocessor.
Using Configuration file /home/pi/linbpq/bpq32.cfg
Conversion (probably) successful
?
PORTS 0x21f9c8 LINKS 0x222410 DESTS 0x225310 ROUTES 0x22b8a0 L4 0x22d2a0 BUFFERS 0x233768
?
Route/Node recovery file BPQNODES.dat not found - Continuing without it
Initialising Port 01? ? ?TCPKISS IP 127.0.0.1 Port 8001 Chan A?
Initialising Port 02? ? ?Telnet Server?
Initialising Port 03? ? ?AXIP?
Starting Mail
Config File is /home/pi/linbpq/linmail.cfg
Config File not found - creating a default config
Config Processed
Config File /home/pi/linbpq/WP.cfg Line 0 - file I/O error
Mail Started
slave device: /dev/pts/3. symlink to /home/pi/BPQ/com10 created
TNC Emulator Init Complete Now, when I open Chromium and enter ?I connect to the K3CWP-1 node. However Direwolf is sending me dire (pun intended) messages: KISS TCP: Something unexpected from client application.
Is client app treating this like an old TNC with command mode?
This can be caused by the application sending commands to put a
traditional TNC into KISS mode.? It is usually a harmless warning.
?
I'm going to stop for the evening and work on it tomorrow sometime.Thanks for the help.? I'm sure I'll be asking for more. Carmine, K3CWP |
Carmine Prestia
John:
I followed these instructions explicitly.? All seemed to work as expected except as noted. now open your file system, open linbpq, right-click on the HTMLPages.zip and select Extract Here. Then right-click on that HTMLPages folder to change the name to just HTML. Then right-click and delete the zip file. No HTMLPages folder appeared in the linbpq directory. Open a new terminal and start direwolf with just: direwolf This results in: Dire Wolf DEVELOPMENT version 1.7 A (Dec? 6 2020)
Includes optional support for:? gpsd hamlib cm108-ptt
ERROR - Could not open config file /home/pi/direwolf.conf
Try using -c command line option for alternate location.
Audio device for both receive and transmit: default? (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, A+, 44100 sample rate / 3.
Note: PTT not configured for channel 0. (Ignore this if using VOX.)
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS TCP client application 0 on port 8001 ...
?
In the linbpq terminal, start linbpq with: ./linbpqThis results in: G8BPQ AX25 Packet Switch System Version 6.0.21.24 February 2021
Copyright ? 2001-2021 John Wiseman G8BPQ
Current Directory is /home/pi/linbpq
?
Configuration file Preprocessor.
Using Configuration file /home/pi/linbpq/bpq32.cfg
Conversion (probably) successful
?
PORTS 0x21f9c8 LINKS 0x222410 DESTS 0x225310 ROUTES 0x22b8a0 L4 0x22d2a0 BUFFERS 0x233768
?
Route/Node recovery file BPQNODES.dat not found - Continuing without it
?
In the Direwolf window I can see that Direwolf is decoding traffic on the packet channel.I tried browser connection to http://127.0.0.1:8010 and Telnet to 127.0.0.1 8010.? Both of these result in 'connection refused' messages. Carmine, K3CWP |
It also looks like you might want to start from scratch, because your current version doesn't seem to initialize any of the ports for some reason. If you already changed the name of your BPQ directory to linbpq, change it to oldlinbpq so you can start over: open a new terminal for the following commands: mkdir linbpq cd linbpq wget https://www.cantab.net/users/john.wiseman/Downloads/Beta/pilinbpq mv pilinbpq linbpq chmod a+x linbpq sudo setcap "CAP_NET_ADMIN=ep CAP_NET_RAW=ep CAP_NET_BIND_SERVICE=ep" linbpq wget http://www.cantab.net/users/john.wiseman/Downloads/Beta/HTMLPages.zip now open your file system, open linbpq, right-click on the HTMLPages.zip and select Extract Here. Then right-click on that HTMLPages folder to change the name to just HTML. Then right-click and delete the zip file. Now take your existing bpq32.cfg file and copy that into the linbpq folder. Open a new terminal and start direwolf with just: direwolf In the linbpq terminal, start linbpq with: ./linbpq |
You only need -p with direwolf if you need to create a kissattach to an axport to use a terminal with direwolf.
Not needed for bpq, as it has it's own ax stack and is just using direwolf as a TCP TNC. Just start direwolf without the -p. For that port in bpq, change that in the config to this: ;? Port 1? PORT ?? PORTNUM=1???????????????????????????????????? ; Port number ?? ID=145.030 MHz 1200 bps?????????????????????? ; PORTS command text ?? TYPE=ASYNC??????????????????????????????????? ; RS232 connection ?? PROTOCOL=KISS???????????????????????????????? ; KISS protocol ?? KISSOPTIONS=NOPARAMS????????????????????????? ; KISS options for TNC ?? FULLDUP=1 ?? IPADDR=127.0.0.1 ?? TCPPORT=8001 ?? SPEED=1200?????????????????????????????????? ; Serial port speed? ? ?? CHANNEL=A???????????????????????????????????? ; TNC channel ?? MAXFRAME=2??????????????????????????????????? ; Max outstanding frames ?? FRACK=7000??????????????????????????????????? ; Level 2 timeout (ms) ?? RESPTIME=1000???????????????????????????????? ; Level 2 delayed ACK (ms) ?? RETRIES=10??????????????????????????????????? ; Level 2 max retries ?? PACLEN=128??????????????????????????????????? ; Max packet length (bytes) ?? TXDELAY=500?????????????????????????????????? ; Transmit keyup delay (ms) ?? SLOTTIME=100????????????????????????????????? ; CMSA interval timer (ms) ?? PERSIST=64??????????????????????????????????? ; Persist(256/(# transmissions-1) ?? DIGIFLAG=1??????????????????????????????????? ; Allow Digipeat on this port ENDPORT The line that says noparams means it's going to skip a few items here and rely on direwolf.conf or direwolf default settings. Your direwolf startup shows that there is no direwolf.conf in your home directory, so you should also save the following to a text file called direwolf.conf in /home/pi/ with the following: ############################ #? Configuration file for Dire Wolf? # #? Simple Linux version for linbpq # ############################ ADEVICE? plughw:1,0 #change this to the results of arecord -l ACHANNELS 1 CHANNEL 0 MYCALL K3CWP-7,? MODEM 1200 1200:2200 TXDELAY 40 TXTAIL 10 AGWPORT 8000 KISSPORT 8001 FIX_BITS 1 AX25 MAXV22 0 |
开云体育Ok, There is something wrong with bpq startup. When I run your config I getG8BPQ AX25 Packet Switch System Version 6.0.21.23 February 2021 Copyright ? 2001-2021 John Wiseman G8BPQ Current Directory is /home/pi/linbpq Configuration file Preprocessor. Using Configuration file /home/pi/linbpq/bpq32.cfg Conversion (probably) successful PORTS 0x21f9c8 LINKS 0x222410 DESTS 0x225310 ROUTES 0x22b8a0 L4 0x22d2a0 BUFFERS 0x233768 Initialising Port 01???? ASYNC /dev/ttyAMA0 Chan A Initialising Port 02???? Telnet Server Initialising Port 03???? AXIP Starting Mail Config File is /home/pi/linbpq/linmail.cfg Config Processed Mail Started slave device: /dev/pts/1. symlink to /home/pi/linbpq/com10 created TNC Emulator Init Complete If you don't get the Initialising Ports message then you haven't opened the TCP ports. This is odd, as I wouldn't expect linbpq to start without a port definiton. It is just possible that linbpq is hanging trying to open /dev/ttyAMA0. That doesn't happen here, but it might be worth changing the config to one of the suggestions below, or remove that port temporarily, and see what happens. Direwolf can either use a TCP connection or create a pty pair that allows it to be accessed as a serial port. You can use -p to enable the serial port. You should then use /tmp/kisstnc in the COMPORT line - the pts number may vary but /tmp/kisstnc will always be symlinked to it. Alternatively you can use the TCP connection. Replace ? COMPORT=/dev/ttyAMA0? ? ? ? ? ? ? ? ? ? ? ? ? ; Serial port ? SPEED=19200? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?; Serial port
speed
with ? ?IPADDR=127.0.0.1 ?TCPPORT=8001 73, John On 16/02/2021 12:56, Carmine Prestia
wrote:
John: |
Carmine Prestia
John:
Is that the whole of the startup message? You should have lines starting "Initialising Port". Yes. This is probably a stupid question, but does linbpq keep running? Ie does it exit? I believe it does.? The terminal window stays open until I type ^C or exit using the X on the terminal window. To check that the ports are listening, use netstat -n -a | grep 8008??? ??? ??? ??? ??? (repeat for 8010, 8011) Tried this for all three ports and nothing returns, just the command line prompt. You should be able to test with telnet 127.0.0.1 8010 or browser to 127.0.0.1:8008 (assuming the browser is on the same machine as linbpq - if not use IP address of the linbpq machine instead of 127.0.0.1 Tried all three of these using Telnet and get the connection refused message. ?Not related to your connection refused problem, but your KISS port definition is for a physical TNC connected to the Pi header. For Direwolf you need to use a KISS over TCP connection. I started thinking about this and remember that elsewhere someone suggested starting Direwolf with the -p command line option.? I made that part of the start line in the menu and now the Direwolf startup message looks like this: Dire Wolf DEVELOPMENT version 1.7 A (Dec? 6 2020)
Includes optional support for:? gpsd hamlib cm108-ptt
ERROR - Could not open config file /home/pi/direwolf.conf
Try using -c command line option for alternate location.
Audio device for both receive and transmit: default? (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, A+, 44100 sample rate / 3.
Note: PTT not configured for channel 0. (Ignore this if using VOX.)
Ready to accept KISS TCP client application 0 on port 8001 ...
Virtual KISS TNC is available on /dev/pts/1
Created symlink /tmp/kisstnc -> /dev/pts/1
Ready to accept AGW client application 0 on port 8000 ...
?
Does this mean that I should change the line in Port 1 from:COMPORT=/dev/ttyAMA0?? to COMPORT=/dev/pts/1 I also note that I don't see ports 8000 or 8001 anywhere in the bpq32.cfg file.? Should they be in there? Thank you. Carmine, K3CWP |
开云体育Is that the whole of the startup message? You should have lines starting "Initialising Port".This is probably a stupid question, but does linbpq keep running? Ie does it exit? To check that the ports are listening, use netstat -n -a | grep 8008??? ??? ??? ??? ??? (repeat for 8010, 8011) You should see tcp??????? 0????? 0 0.0.0.0:8008 ?????????? 0.0.0.0:*?????????????? LISTEN You should be able to test with telnet 127.0.0.1 8010 or browser to 127.0.0.1:8008 (assuming the browser is on the same machine as linbpq - if not use IP address of the linbpq machine instead of 127.0.0.1 ?Not related to your connection refused problem, but your KISS port definition is for a physical TNC connected to the Pi header. For Direwolf you need to use a KISS over TCP connection. 73 John On 15/02/2021 22:52, Carmine Prestia
wrote:
Jeff: |
It's also worth noting that John recommends changing the name of pilinbpq to linbpq before use, and naming that directory that everything is in linbpq.
"I suggest you create a directory linbpq to hold the software and files. The simplest way to download is to use wget. If you use the pi version, rename to linbpq after downloading." |
Carmine Prestia
Jeff et al.:
2. On your home router, do you have ports 8008, 8010, 8011 and 10093 forwarded for the IP address of your linbpq machine? I'm a newbie to RPi and Linux and don't know if I'm doing this right but based on some other posts in another topic I tried the commands netstat, SS, and cat and in none of the reports did I see the above ports as listening. Could that mean something? Carmine, K3CWP |
Some additional things to try: Given you have vnc access, I would start a web browser on the Pi and try . Also start a terminal session and try this: telnet 127.0.0.1 8010? (no colon on the telnet line)? 73 Lee K5DAT?
|
to navigate to use esc to dismiss