LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 10-10-2013, 12:40 AM   #1
canopus69
Member
 
Registered: Sep 2013
Posts: 72

Rep: Reputation: Disabled
iptable port question


IP table which is listed below comes with redhat 6.4 default install.

From there I am able to connect to redhat website https://cdn.redhat.com on https which I believe uses port 443.

It appears, on my company firewall port 443 is open.

But my question is, it ( port 443) is not open on the server ip table, then how come I am able to connect to redhat website and download updates etc ?



[root@redhat64-basic ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@redhat64-basic ~]#
 
Old 10-10-2013, 01:00 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I'm no iptables expert, but looking at what you posted it seems to be because outgoing connections are not blocked. The "REJECT all" is in the "INPUT" section not the "OUTPUT" section.

Evo2.
 
1 members found this post helpful.
Old 10-10-2013, 01:03 AM   #3
CodeFreaker
LQ Newbie
 
Registered: Feb 2010
Posts: 27

Rep: Reputation: 12
Cool

Quote:
Originally Posted by canopus69 View Post
IP table which is listed below comes with redhat 6.4 default install.

From there I am able to connect to redhat website https://cdn.redhat.com on https which I believe uses port 443.

It appears, on my company firewall port 443 is open.

But my question is, it ( port 443) is not open on the server ip table, then how come I am able to connect to redhat website and download updates etc ?



[root@redhat64-basic ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT icmp -- anywhere anywhere
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@redhat64-basic ~]#
Here it is open 443 in red hat web server's port not your machines port.where 443 acts for the servers inbound traffic not for the outbound traffic.Redhat web server listens to 443 for SSL traffic.you can clearly see using this by running netstat -natp

There you can the source socket and the destination socket...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to open port at iptable? windstory Linux - Newbie 4 10-13-2010 09:44 PM
iptable for dansguardian port redirect vijay1585 Linux - Software 1 04-30-2009 07:05 PM
port forwarding using IPTABLE ...( Help) ad2005 Linux - Networking 5 03-15-2006 10:56 PM
IPTable Problems (Port Forwarding)... Arch3Angel Linux - Security 3 12-04-2004 04:56 PM
Iptable-rules block port 80 goldenmag Linux - Security 3 09-05-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:48 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