LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 04-02-2005, 07:35 PM   #1
excidy
Member
 
Registered: Apr 2005
Location: USA
Distribution: I switch distros every day.
Posts: 32

Rep: Reputation: 15
Open Ports


Does anyone know how to open ports from the command line? I have a firewall instalelled on a remote compuer. The way i can acess it is only throught SSH. Lately I installed TightVNC on it through SSH, but the firewall does not let me connect to it somehow. All i can do is use the command line, and i dont' know how to open ports through command line. Google didn't help much either. Can anyone help me with this? Thank you...
 
Old 04-02-2005, 07:40 PM   #2
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,670

Rep: Reputation: 47
read "man iptables"

the quick answer would be....
Code:
/sbin/iptables -I INPUT 1 -p <protocol> --dport <port_Number> -j ACCEPT
rpeplace M<protocol> with wither UDP or TCP, and <port_Number> with the port you want to open.

this will inrt the rul to allow this traffic at the very top of the input chain.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
open ports on linksys, i have ssh open but thats it PlatinumRik Linux - Security 1 07-07-2005 10:38 AM
Need help to open some ports. agent003 Linux - Security 2 10-11-2004 06:33 PM
Too many open ports! ne21 Slackware 17 03-23-2004 08:55 PM
Ports have to be open? Daiba Linux - Newbie 3 01-29-2004 08:39 AM


All times are GMT -5. The time now is 07:44 PM.

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
Open Source Consulting | Domain Registration