@ali-ilyas said in PFSense On 4G To Remotely Access PLC (Programmable Logic Controller):
I tried using Pfsense to access a PLC over VPN without having to enter router or default gateway info into PLC but didn't work.
Also you will need to have a route setup on your local machine or router to the remote LAN network that sends traffic to the pfsense box that is performing the outbound NAT to the remote LAN. Hopefully it will be using a subnet that is different from your local network.
If you are hitting that it mostly affects VPN tunnels using the interface address. Whatever nuance it is causes the interface to return a VIP as the primary address. However you will find it doesn't cause a problem for pf using the system alias 'WAN address' for firewall rules or outbound NAT for example.
If you can use a VIP there instead of the interface address that will be unaffected.
Steve
There were significant changes in pf after 2.5.1 which will be in 2.5.2, especially in state handling. That panic is unlikely to still happen on 2.5.2, or at least would have a different backtrace which would be more helpful.
I found this page that describes the fix which corrected my issue. Mostly, set to the current distribution, in my case 2.4.5 DEPRECATED and run "sudo pkg-static install -f pkg"
https://agent31.net/blog/2021/03/10/fixing-stalled-package-manager-in-pfsense-2-4-5-p1-easily-in-5-minutes/
This procedure fixed the package manager on my 2.4.5-p1.
Use Captive Portal along with FreeRadius. Create a user and restrict no of simultaneous devices to 3. Share the username and password with all the users.... at a time only 3 will be able to connect.
Regards,
Ashima
For everyone's reference: apparently the notification methods are mutually exclusive.
I had to first disable the SNMP notification method to have the Telegram one work.
It looks like a bug to me. At the very least it is a behavior worth documenting.
If you create a new column in Wireshark and add the field vlan.id you'll be able to see the vlan ID otherwise look in the data.
[image: 1624298101833-screenshot-2021-06-21-at-18.50.46.png]
@openwifi
That link shows you how to integrate a script using the cron package.
What step isn't clear for you ?
Btw : The real solution would be to understand why this happens :
@openwifi said in Script for Automatic Reboot of my pfsense box:
where my WAN 1 connections seem to stop working
The interface is bad ?
The other side's interface is bad ?
What is the other side ?
DHCP re-negotiation is failing ?
Etc.
@mewsense said in 504 Gateway Time-out:
Not sure if it's related to a recent release
Hi,
There would be a lot of crying people here, if it was new release dependent...
this is a very basic function, we agree?
Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.