Accessing YSFReflector on local network

All IP networking related issues
Post Reply
KK7DSE
Posts: 2
Joined: Mon Mar 21, 2022 12:54 am

Accessing YSFReflector on local network

Post 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!!
User avatar
YL3IM
Posts: 39
Joined: Sun Nov 22, 2020 8:38 pm
Location: Riga, Latvia
Contact:

Re: Accessing YSFReflector on local network

Post 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 :)
KK7DSE
Posts: 2
Joined: Mon Mar 21, 2022 12:54 am

Re: Accessing YSFReflector on local network

Post 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!
Post Reply