Edited squid.inc now I got an error
-
Please help a newbie, I've tried following the first sticky above, now I got this error below.
Please let me know any info needed to help me solve this problem.Parse error: syntax error, unexpected T_VARIABLE in /usr/local/pkg/squid.inc on line 480
-
It means that you have probably removed a ";" somewhere that you shouldn't have. How you got the error to occour on line 480 though is rather odd as the first line that you should have edited following the sticky above is line 589 ($conf .= "http_port 127.0.0.1:80 transparent\n";)
Probably your best bet at this point is to restore an original version of the file (If you didn't make a backup you can re-install pfsense if you haven't configured much or I can post the file here).
Once you have an original file back a much easier way then manually going to each line and changing the IP address is to run the following command in vi:%s/127.0.0.1/192.168.1.1/g
(Replace 192.168.1.1 with your lan interface's IP address)
If you are unfamiliar with vi to execute that you simply go "vi /usr/local/pkg/squid.inc" from the shell, hit the ":" key, and type in the command from above. What that command will do is replace every instance of 127.0.0.1 with 192.168.1.1.
-
Thanks for the reply.
I have reinstalled PFSENSE this morning.
I'm gonna try once again, maybe after a few reading.I am not familiar with vi editor, certainly I messed up the file. I thought it's just like editing in notepad or something.