public:radio:svx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:radio:svx [02/06/22 18:52 BST] – john | public:radio:svx [26/04/23 14:52 BST] (current) – removed john | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <-[[.:]] | ||
- | ====== GM4SLV : svxlink hotspot====== | ||
- | |||
- | |Raspberry Pi| | ||
- | |SVXLink| | ||
- | |CM108 soundcard| | ||
- | |IC-2E| | ||
- | |||
- | Remote/ | ||
- | |||
- | Similar setup to [[aze|MB7AZE]] but without the connection to '' | ||
- | testing ground to keep my traffic off the rest of the system. | ||
- | |||
- | Usual method of deployment is to use a small //MiFi 4G router// as an access point to let the Raspberry Pi reach the internet. | ||
- | When this MiFi router is in use the node is on an inaccessible network and I can't reach it to make changes or shut it down. | ||
- | |||
- | === The answer is SSH Tunnels === | ||
- | I use a " | ||
- | |||
- | The idea is that the remote node makes an outgoing SSH connection, to a machine on my LAN. I have an open port in the router forwarded to an internal machine for SSH access when I'm away from home. This is straightforward, | ||
- | |||
- | '' | ||
- | |||
- | Along with this // | ||
- | |||
- | This //tunnel// will now accept incoming connections from machines //inside// my LAN and __forward them to the remote node__. I can now effectively SSH to the remote SVXLink node as if it were on my LAN in the shack. | ||
- | |||
- | The magic is all done in SSH, but to make it more robust I use a package called '' | ||
- | |||
- | Here is the script that fires it all off: | ||
- | |||
- | '' | ||
- | |||
- | <code bash> | ||
- | #!/bin/bash | ||
- | |||
- | autossh -M 20000 -N -T gm4slv_tunnel | ||
- | |||
- | </ | ||
- | |||
- | Simple enough, but effective. | ||
- | |||
- | The '' | ||
- | |||
- | <code bash> | ||
- | Host gm4slv_tunnel | ||
- | HostName gm4slv.plus.com | ||
- | User gm4slv | ||
- | Port xxxxx | ||
- | RemoteForward 4446 localhost: | ||
- | RemoteForward 8080 192.168.0.1: | ||
- | </ | ||
- | |||
- | This sets up a remote tunnel, listening on port 4446 of my shack PC that will be forwarded back up the SSH connection to the SVXLink Raspberry Pi. | ||
- | It also sets up a listening port 8080 which gives me '' | ||
- | |||
- | '' | ||
- | |||
- | To allow an unattended/ | ||
- | |||
- | Generate a public/ | ||
- | |||
- | (on Raspberry Pi): | ||
- | |||
- | '' | ||
- | |||
- | enter password etc. to do the initial '' | ||
- | |||
- | (on Shack PC) | ||
- | |||
- | '' | ||
- | |||
- | then any further SSH or SCP sessions //from// the Rasperry Pi //to// the Shack PC //should// occur without any need for | ||
- | passwords. | ||
- | |||
- | The Pi is now set up for automatic SSH Remote Tunnel - as long as the script is run at boot time: | ||
- | |||
- | Crontab is used to fire off the tunnel //and// start SVXLink @reboot | ||
- | |||
- | <code bash> | ||
- | @reboot sleep 60 && sudo -u gm4slv / | ||
- | @reboot sleep 30 && sudo -u gm4slv / | ||
- | </ | ||
- | |||
- | To check the Tunnel is up you look at '' | ||
- | |||
- | <code bash> | ||
- | gm4slv@laptop: | ||
- | Active Internet connections (only servers) | ||
- | Proto Recv-Q Send-Q Local Address | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 127.0.0.1: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 127.0.0.1: | ||
- | tcp 0 0 127.0.0.1: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | tcp 0 0 0.0.0.0: | ||
- | |||
- | </ | ||
- | |||
- | SSH is listening on ports '' | ||
- | |||
- | Port 20000 (and 20001) is used by '' | ||
- | |||
- | |||
- | From the Shack PC I can '' | ||
- | |||
- | <code bash> | ||
- | gm4slv@laptop: | ||
- | Linux svx 5.15.32-v7+ #1538 SMP Thu Mar 31 19:38:48 BST 2022 armv7l | ||
- | |||
- | The programs included with the Debian GNU/Linux system are free software; | ||
- | the exact distribution terms for each program are described in the | ||
- | individual files in / | ||
- | |||
- | Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent | ||
- | permitted by applicable law. | ||
- | Last login: Wed May 4 14:28:06 2022 from 127.0.0.1 | ||
- | gm4slv@svx: | ||
- | gm4slv | ||
- | gm4slv@svx: | ||
- | gm4slv | ||
- | gm4slv@svx: | ||
- | backup | ||
- | backup.tar | ||
- | git_backup.sh | ||
- | gm4slv@svx: | ||
- | </ | ||
- | |||
- | // | ||
- | |||
- | Page Updated : ~~LASTMOD~~ | ||
- | |||
- | {{tag> |
public/radio/svx.1654192353.txt.gz · Last modified: 06/03/25 06:49 GMT (external edit)