Fedora Linux Support Community & Resources Center
Old 27th March 2017, 04:14 AM
tnsupport Offline
Registered User
Join Date: May 2016
Location: usa
Posts: 31
f25 iptables default blocking

installed f25 on linode
after much trouble and many hours, and good help from the linode support team, found out that with F25, ports 80 and 443 were blocked (absent) in iptables

is this intentional ? How many people install Fedora Server with the intention of blocking web traffic ?

We think these ports should be unblocked as default and if there is concensus that they should be blocked then here are the commands to get the website working now.
Reply With Quote
Old 8th April 2017, 11:36 AM
wolfred Offline
Registered User
Join Date: Apr 2014
Location: Brooklyn
Posts: 48
Re: f25 iptables default blocking

If you are using Fedora server as a mail server you would not need ports 80 and 443 open. From what I remember only port 22 is open by default. I think firewalld comes preinstalled on Fedora, not 100% sure. Did you disable firewalld and install iptabled-services ?

You can use the netstat command to see what ports are on, then allow those ports in iptables or firewalld
netstat -tupln
To open the ports with iptables
iptables -A INPUT -p tcp -m conntrack --ctstate NEW --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m conntrack --ctstate NEW --dport 443 -j ACCEPT
iptables -A OUTPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
The first one will accept new connections to port 80
The second one will accept new connections to port 443
the third command will allow established connections to go out.

Last edited by wolfred; 8th April 2017 at 12:27 PM.
Reply With Quote

blocking, default, f25, iptables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables for blocking one computer Turtel Servers & Networking 3 10th July 2011 11:46 AM
IPTABLES SSH port blocking spoutin Security and Privacy 29 26th August 2006 07:53 AM
iptables blocking samba Pipette Monkey Servers & Networking 2 8th April 2005 11:34 PM

Current GMT-time: 15:55 (Sunday, 24-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat