943,483 Members | Top Members by Rank

Jul 21st, 2004
0

vnc on linux, firewall shutdown command

Expand Post »
Hi All,
i have setup vnc on my fedora linux box, but after a bit of looking around i can see that to vnc the gnome desktop i need to switch off the gnome desktop on the host machine. problem is when i drop to init 3 to kill the graphics the linux firewall switches itself back on and wont let me use vnc.

can you tell me how to kill the firewall using the command line? and dont worry i know the implication of not have the firewall.

cheers

spikes
Similar Threads
Reputation Points: 11
Solved Threads: 2
Junior Poster
spikes is offline Offline
106 posts
since Jul 2003
Jul 21st, 2004
0

Re: vnc on linux, firewall shutdown command

Why switch the firewall off? I haven't used Fedora in some time, but I have some suggestions:
  • Log out of your Gnome desktop, and don't drop to runlevel 3. That way your Gnome desktop isn't locked up.
  • Add the ports that VNC uses to your list of allowed ports in the firewall. That way, you don't ever have to worry about it again. VNC display number 0 is port 5900, display 1 is 5901, etc.

One of the things you could try is running redhat-config-securitylevel in the GUI, and just disable your firewall. If you don't have any vital services running, then you don't have to really worry about the security implications of not having a firewall. I personally barely have a firewall, if you could say that. But, I get by because my gateway server has every port closed except for SSH and FTP, and I've set up access control lists on both services, only giving access to clients I've pre-approved to connect to me.

So, I don't have a firewall doing much, but that's because I made sure to cut out unneccesary services. For instance, do you need apache running on your box? What about portmapper? Don't have any NFS shares? You can cut those out. I usually port scan my box every now and then, just to see what ports are open, then I determine if I really need any of the services that are running.
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Jul 22nd, 2004
0

Re: vnc on linux, firewall shutdown command

Hi Alex,
thanks for the reply. like yourself i have all of my network hiden away behind smoothwall firewalls, which is why i was giong with just a shutdown.

the truth is when ever i use the gnome security-level tool it does not work, i have fonud that i am unable to change the firewalls on RH8 to Fedora core 2 useing this, and to be honest i havent worked out how to adjust the firewall through the command line.

yea i know, i should really raise my game in this area, but i just tend to rely on my perimiter defences.

if you have time to note down any tips for me, on changing the firewall settings useing the command line, that would rock!

cheers,

spikes
Reputation Points: 11
Solved Threads: 2
Junior Poster
spikes is offline Offline
106 posts
since Jul 2003
Jul 23rd, 2004
0

Re: vnc on linux, firewall shutdown command

Quote originally posted by spikes ...

if you have time to note down any tips for me, on changing the firewall settings useing the command line, that would rock!

cheers,

spikes
I'll see what I can do there. I'm running RHEL AS 3 at my house, which is based off of Red Hat 9. I'll try to see if I can make heads or tails of the command-line firewall configuration on it tonight...
Team Colleague
Reputation Points: 186
Solved Threads: 147
Cookie... That's it
alc6379 is offline Offline
2,519 posts
since Dec 2003
Aug 3rd, 2004
0

Re: vnc on linux, firewall shutdown command

Hello,

I am running a IPTABLES firewall written by hand with the aid of a RedHat Press book.

I run RedHat 7 & 9 machines, and always boot to just the console. I leave the graphical login client off. I use the vncserver :port -depth commands to spawn off VNC sessions while the main screen remains in a text environment. In those VNC windows, I run TWM to keep the fancy desktop off of the network... a bare-bones xterm is about it for me.

One of these days, I need to build a fedora box and see where that technology is going.

Christian
Last edited by alc6379; Aug 3rd, 2004 at 4:36 pm. Reason: disabled smilies
Team Colleague
Reputation Points: 121
Solved Threads: 57
Posting Virtuoso
kc0arf is offline Offline
1,629 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Networking Configuration Forum Timeline: VMWare Red Hat 9 VMWare Tools and DNS
Next Thread in Linux Networking Configuration Forum Timeline: Setting up a dns server





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC