P25 Reflector on Alternate Port

Help with P25 issues
Post Reply
K4OSS
Posts: 2
Joined: Sun Aug 05, 2018 4:24 pm

P25 Reflector on Alternate Port

Post by K4OSS » Sun Aug 05, 2018 4:50 pm

Hi All,

I just set up my own P25 reflector for a small group of friends to use. I'd like to be able to run the reflector on an alternate (UDP) port instead of the default 41000.

Making the reflector listen on a different UDP port is no problem - I just edit the P25Reflector.ini file on the server, and I can see that it is listening on the custom port.

The problem seems to be with P25Gateway running on my Pi-Star instance (version 3.4.15). Even though I've specified the entry in /root/P25Hosts.txt (and then run the "update" command), the gateway is not sending ANY traffic to my reflector when I use a custom port. I've done packet captures on my LAN to verify this. As soon as I edit /root/P25Hosts.txt and change the port back to the default of 41000, the hotspot sends traffic to the reflector, just like it should.

What am I missing?

Example P25Hosts.txt:

Code: Select all

#TG	Host		Port
1234	11.22.33.44 	44123
The above example won't work. My hotspot doesn't send any traffic to the reflector in this configuration, as verified by packet captures on my LAN as well as the remote reflector host.

As soon as I change it to:

Code: Select all

#TG	Host		Port
1234	11.22.33.44 	41000
It works as expected. Obviously, when trying these different port numbers, I have updated the P25Reflector.ini config and restarted the reflector service. This is kind of moot, since the problem is on the hotspot/gateway end at this point, but just wanted to state the obvious.

I would like to run a few different reflectors on the same host by utilizing different ports, so I'd really like to figure this out.

Thanks!

Edit: My P25Gateway logs in /var/log show the following when configured to connect to my reflector on an alternate port:

Code: Select all

E: 2018-08-05 19:14:01.750 Error returned from sendto, err: 1
E: 2018-08-05 19:14:01.750 Error returned from sendto, err: 1
E: 2018-08-05 19:14:01.750 Error returned from sendto, err: 1
M: 2018-08-05 19:14:01.750 Linked at startup to reflector 1234
E: 2018-08-05 19:14:06.753 Error returned from sendto, err: 1
E: 2018-08-05 19:14:11.759 Error returned from sendto, err: 1
E: 2018-08-05 19:14:16.762 Error returned from sendto, err: 1
E: 2018-08-05 19:14:21.771 Error returned from sendto, err: 1
E: 2018-08-05 19:14:26.774 Error returned from sendto, err: 1
E: 2018-08-05 19:14:31.786 Error returned from sendto, err: 1
E: 2018-08-05 19:14:36.789 Error returned from sendto, err: 1
E: 2018-08-05 19:14:41.794 Error returned from sendto, err: 1
E: 2018-08-05 19:14:46.800 Error returned from sendto, err: 1
E: 2018-08-05 19:14:51.810 Error returned from sendto, err: 1
E: 2018-08-05 19:14:56.816 Error returned from sendto, err: 1
E: 2018-08-05 19:15:01.822 Error returned from sendto, err: 1
E: 2018-08-05 19:15:06.828 Error returned from sendto, err: 1
E: 2018-08-05 19:15:11.835 Error returned from sendto, err: 1
E: 2018-08-05 19:15:16.836 Error returned from sendto, err: 1
E: 2018-08-05 19:15:21.840 Error returned from sendto, err: 1
E: 2018-08-05 19:15:26.843 Error returned from sendto, err: 1
E: 2018-08-05 19:15:31.847 Error returned from sendto, err: 1
E: 2018-08-05 19:15:36.852 Error returned from sendto, err: 1
E: 2018-08-05 19:15:41.855 Error returned from sendto, err: 1
E: 2018-08-05 19:15:46.865 Error returned from sendto, err: 1
E: 2018-08-05 19:15:51.869 Error returned from sendto, err: 1
E: 2018-08-05 19:15:56.871 Error returned from sendto, err: 1
W: 2018-08-05 19:16:01.835 No response from 1234, unlinking

ct1dvm
Posts: 129
Joined: Thu Apr 19, 2018 6:34 am

Re: P25 Reflector on Alternate Port

Post by ct1dvm » Mon Aug 20, 2018 1:49 pm

...
Last edited by ct1dvm on Mon Jan 14, 2019 10:11 am, edited 1 time in total.

K4OSS
Posts: 2
Joined: Sun Aug 05, 2018 4:24 pm

Re: P25 Reflector on Alternate Port

Post by K4OSS » Sun Aug 26, 2018 3:04 pm

ct1dvm wrote:
Mon Aug 20, 2018 1:49 pm
You will need to add a iptables rule to add the port.
Ah, thank you! I was not expecting a firewall to be running on Pi-Star at all, so I didn't even think about checking that. I'll disable iptables and see if that does the trick.

MW0MWZ
Site Admin
Posts: 886
Joined: Wed Apr 04, 2018 9:15 pm
Location: Wales, UK
Contact:

Re: P25 Reflector on Alternate Port

Post by MW0MWZ » Thu Aug 30, 2018 8:48 am

add you specific rule to /root/ipv4.fw

Add just the iptables line you want, and then run the:

Code: Select all

sudo pistar-firewall
script, that will pull in the change permanently, this is much preferred to just killing iptables :)
Andy

73 de MW0MWZ
http://pistar.uk

Post Reply