LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-24-2015, 01:16 PM   #1
F,Dillon@NYC
LQ Newbie
 
Registered: Jul 2015
Location: NYC, the BIG Apple
Posts: 12

Rep: Reputation: Disabled
opening a port using iptables


my ssh port is 2020, how can i add this to iptables.
 
Old 07-24-2015, 01:29 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 7,639
Blog Entries: 13

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by F,Dillon@NYC View Post
my ssh port is 2020, how can i add this to iptables.
Hi,

Please review this link to aid you in asking a more clear question and get an answer which will be helpful to you.

- RT
 
Old 07-24-2015, 01:37 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,406
Blog Entries: 55

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Quote:
Originally Posted by F,Dillon@NYC View Post
my ssh port is 2020,
Instead adhere to SSH Best Practices (no root login, only pubkey auth, protect service with fail2ban or equivalent)?


Quote:
Originally Posted by F,Dillon@NYC View Post
how can i add this to iptables.
What does (as root) 'iptables-save' return? (Please use vBB code tags.)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] iptables, http port not opening fakie_flip Linux - Software 4 01-27-2012 12:33 AM
iptables not opening port on centos TungstenX Linux - Security 4 12-24-2010 03:58 PM
IPtables - Opening Port 80 Problem Palula Linux - Networking 5 06-13-2006 08:54 AM
opening a port in iptables mehesque Linux - Networking 1 01-22-2004 05:30 AM
problem with port 113 (opening) and iptables ratty007 Linux - Networking 4 01-14-2004 03:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration