Page 1 of 1

Accessing YSFReflector on local network

Posted: Sun Apr 10, 2022 2:32 am
by KK7DSE
Hello,
I've recently set up a YSFReflector for fun. It if up and functional. I have found an issue that I am hoping someone has a suggestion for. If I want to connect my PiStar to the reflector I have to ssh into the PiStar and replace the IP address in the YSFHosts.txt for my reflector with my local IP address.
This works great. Until, of course, the PiStar updates and overwrites that file. I have a ubiquiti router, so if my external IP was static I could route it to my local address internally. It isn't though.
Does any one have any suggestions for how I can access the local YSF reflector without needed to update the YSFHosts.txt after every PiStar update?

Thanks!!

Re: Accessing YSFReflector on local network

Posted: Sun Apr 10, 2022 2:49 pm
by YL3IM
I had the same issue with Mikrotic RouterOS not supporting Hairpin NAT.

I used this workaround for a while:

cd /usr/local/etc
for i in *txt; do sed -i 's/111.111.111.111/192.168.0.111/g' $i; done


By adding these lines to the end of /usr/local/sbin/HostFilesUpdate.sh file just before exit 0.

I flashed OpenWRT to my Mikrotik router later and the issue went away :)

Re: Accessing YSFReflector on local network

Posted: Sun Apr 10, 2022 6:21 pm
by KK7DSE
I checked after reading your post and I did not have hairpin NAT turned on. that sorted it out.
Thank you so much!