LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Rookie broke firewall (https://www.linuxquestions.org/questions/linux-security-4/rookie-broke-firewall-390336/)

sbowman22 12-07-2005 09:19 PM

Rookie broke firewall
 
I have Fedora 4 loaded.

I added this line to the firewall (Desktop\System Settings\Security Level): 5901:tcp

I closed the firewall and retried VNCing into box. No luck so I restarted linux. Still no luck, I tried to access the firewall again. It opens for 2 seconds and closes.

When I run this: system-config-securitylevel --> at the command prompt, I get this:

Traceback (most recent call last):
File "usr/share/system-config-securitylevel/system-config-securitylevel.py" line 18, in ? app.stand_alone()
File "usr/share/system-config-securitylevel/secruitylevel.py" line 453, in stand_alone self readFile()
File "usr/share/system-config-securitylevel/secruitylevel.py", line 353, in readFile protoname=socket.getservbyport(int(service), protocl)
socket.error: port/proto not found


Any ideas, I cant get VNC to work or edit the firewall

Thanks

Capt_Caveman 12-08-2005 03:40 PM

That syntax looks ok, so it might be some kind of bug with the firewall GUI. Try using the command line instead:

Open a new terminal
Become root with su -
Enter root password when prompted
Enter the following:
iptables -I INPUT -p tcp --dport 5901 -j ACCEPT

Test out your VNC
If it works, then make changes permanent with:
service iptables save


All times are GMT -5. The time now is 09:25 AM.