[Request] Changing pfclient http port from 30053 to custom port

herren

New Member
Hello,

I did a little bit of searching but did not find anything.

I want to change the port pfclient uses for its web interface from 30053 to something else. Is this possible in the current version?

I'm running pfclient v5.0.161 on ARM.

Thanks in advance.
 
It can be done by modifying file /etc/init.d/pfclient , but as Planefinder wont like users to screw their feeder, I wont post the method. However just see the screeshot below in which the planefinder map is diaplayed at port 8181 instead of 30053 after I made that modification ;)


1678309742128.png
 
It can be done by modifying file /etc/init.d/pfclient , but as Planefinder wont like users to screw their feeder, I wont post the method. However just see the screeshot below in which the planefinder map is diaplayed at port 8181 instead of 30053 after I made that modification ;)


View attachment 3211
And "where" should i look in that file please? ;)
 
And "where" should i look in that file please? ;)

The modification is simple, but the problem is that a little mistake in modification will result in pfclient to fail.

I can try to write a bash script which can do the job automatically, without user intervention. This will eliminate human/user errors, but I dont want to post the script here unless @Lee Armstrong or @Mark Daniels have no objection.
 
You can actually add something to the config file in `/etc/pfclient-config.json` to do this.

"web_server_port" - set this to whatever port you require and it will override the default of 30053
 
You can actually add something to the config file in `/etc/pfclient-config.json` to do this.

"web_server_port" - set this to whatever port you require and it will override the default of 30053
Thanks Lee. Your method is much easier than what I did in file /etc/init.d/pfclient. I added --web_port=8181 to the line starting with start-stop-daemon



20230312_074159.jpg


After above modification, and saving the file, following commands should be issued

Code:
sudo systemctl daemon-reload
sudo systemctl restart pfclient


Now I have deleted --web_port=8181 from file /etc/init.d/pfclient, making it back to default, and used your suggestion to modify file /etc/pfclient-config.json as shown in screenshot below by inserting the portion "web_server_port":"8181", pointed by red arrow:

pfclient-change-web-server-port-default2.png





My Settings.
I have broken "all-items-in-single-line" default setting into "one-item-per-line" (Easier to read & modify)
pfclient-change-web-server-port.png









After making modifications, and saving file, issued following command

Code:
sudo systemctl restart pfclient

.
 
Last edited:
Back
Top