LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 07-06-2006, 08:46 AM   #1
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Rep: Reputation: 15
VNC and iptables in FC4


So, after disappointed attempt at FC5 (32 bit wouldn't boot up for me, and 64 bit had too many problems. Plus no flash. No homestar? No OS), I reinstalled FC4. Almost back to normal except with VNC. This shouldn't be too difficult b/c it connects correctly if iptables is stopped, so the problem is in iptables. Gasp. I've tried a few things with no success. What do I need to do?
 
Old 07-06-2006, 11:00 AM   #2
Fadoksi
Member
 
Registered: Apr 2006
Location: Finland
Distribution: Ubuntu, Gentoo, Debian
Posts: 88

Rep: Reputation: 15
You must open the ports from iptables to allow the vnc service.
Myself, I'm a noob with iptables and im using a Firestarter GUI.
You can try it or wait for someone with iptables knowledge will answer
 
Old 07-06-2006, 11:28 AM   #3
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 15
Well, I do use firestarter, but I think I had opened 5901 already(5900+1 for :1 display). Also, I'm at work connected through ssh for now. I do have a linux box running, so if someone could explain how to get ssh -X to work, that would work as well.
 
Old 07-06-2006, 02:10 PM   #4
hazmatt20
Member
 
Registered: Jan 2006
Distribution: FC5, Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 15
Well, when I tried before, ssh -X did not work. I tried again, and it worked, albeit slowly. However, it was enough to open firestarter to open port 5901 (only 5900 was open). So, I'm set, but what should I have done to change it directly in iptables?
 
Old 07-06-2006, 02:19 PM   #5
Fadoksi
Member
 
Registered: Apr 2006
Location: Finland
Distribution: Ubuntu, Gentoo, Debian
Posts: 88

Rep: Reputation: 15
Google revealed me an example command and I think it should be like:
Code:
iptables -A INPUT -s sourceip -j ACCEPT -p tcp --destination-port 5900
Not sure will this work but I think it should Just change the sourceip

Last edited by Fadoksi; 07-06-2006 at 02:25 PM.
 
  


Reply

Tags
firewall, iptables, vnc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win2003 login remotely to FC4 via VNC zillah Linux - Networking 11 05-31-2006 08:30 AM
fc4 iptables blocking yum and smtp (postfix) dtra Linux - Networking 1 04-30-2006 12:05 AM
squid, iptables and fc4...problem shahg_shahg Linux - Networking 2 03-20-2006 12:11 AM
port 25 forwarding iptables FC4, can't get it to pass traffic sahib2u Linux - Security 4 03-01-2006 10:00 AM
FC4 - iptables brunog Linux - Software 2 01-01-2006 05:35 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration