LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 02-14-2017, 08:37 AM   #1
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Rep: Reputation: Disabled
software firewall, allow ftps only


can i write new lines in /etc/sysconfig/iptables -

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 990 -j ACCEPT

-A INPUT -m state --state NEW -m tcp -p tcp --dport 50000:50100 -j ACCEPT

to only allow ssh (22) ftps (990, 50000:50100) and from my router im only going to allow ftps ports only to my ftp server, NO ssh access

cheers,

rob
 
Old 02-14-2017, 10:18 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,759

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
Yes however there is the comment in the iptables files...
Quote:
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
In addition to the GUI firewall tool you can add the rules manually using the iptables command. If everything works as desired you can save them using the command service iptables save.

Last edited by michaelk; 02-15-2017 at 07:22 AM.
 
Old 02-15-2017, 06:45 AM   #3
robertkwild
Member
 
Registered: Feb 2015
Posts: 382

Original Poster
Rep: Reputation: Disabled
thanks
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] FTPS Ports azuahaha Linux - Server 1 04-14-2015 12:02 AM
[SOLVED] Firewall ports for FTPS (FTP over SSL) connection cccc Linux - Security 4 10-17-2012 02:41 AM
Ftps mkono Linux - Enterprise 1 07-30-2008 04:57 PM
router billion 5102 has firewall and software firewall tests aus9 Linux - Security 6 12-31-2006 10:09 PM
FTPs for Newbies splattermark Linux - Networking 3 02-28-2002 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 05:07 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
Open Source Consulting | Domain Registration