•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the *nix Software section within the Tech Talk category of DaniWeb, a massive community of 456,434 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,643 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our *nix Software advertiser: Lunarpages Linux Web Hosting
Views: 15430 | Replies: 4
![]() |
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
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
"it's not to old to do cool stuff, it's just to old to do it with graphics"
•
•
Join Date: Dec 2003
Location: Nashville, TN
Posts: 2,333
Reputation:
Rep Power: 11
Solved Threads: 102
Why switch the firewall off? I haven't used Fedora in some time, but I have some suggestions:
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.
- 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.
Alex Cavnar, aka alc6379
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
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
"it's not to old to do cool stuff, it's just to old to do it with graphics"
•
•
Join Date: Dec 2003
Location: Nashville, TN
Posts: 2,333
Reputation:
Rep Power: 11
Solved Threads: 102
•
•
•
•
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...
Alex Cavnar, aka alc6379
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
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
![]() |
•
•
•
•
•
•
•
•
DaniWeb *nix Software Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
blog cellphone computer core debian dell developer development enterprise erp systems fedora gentoo gpl hardware ibm india install intel internet kernel linux media microsoft mmorpg mobile news novell office open open source operating os project project management red hat security server software software selection source sun system technology evaluation ubuntu unix vista web windows xp
- Remote Computer Shutdown (Windows NT / 2000 / XP / 2003)
- The 10 Minute Linux Firewall (Linux Tutorials)
- Shutdown -i command (Windows NT / 2000 / XP / 2003)
- No clue, Need to make a linux server (Linux Servers and Apache)
- vnc between linux and windows (*nix Software)
Other Threads in the *nix Software Forum
- Previous Thread: grub bootloader
- Next Thread: i need help



Linear Mode