Jump to content
Sign in to follow this  
anyweb

how to open a port

Recommended Posts

via lokkit, in the 'Other Ports' field, type:

 

https:tcp

 

then apply the changes. or if you want to do this in the console,

 

type:-

 

iptables -A INPUT -i eth0 -p tcp --sport 443 -m state --state ESTABLISHED -j ACCEPT

 

iptables -L will list your current rules

 

the above example opens port 443

 

cheers

 

anyweb

Share this post


Link to post
Share on other sites

does this mean port 67 is open?

output from iptables -L:

 

ACCEPT udp -- anywhere anywhere udp spt:bootps state ESTABLISHED

Share this post


Link to post
Share on other sites
iptables -A INPUT -i eth0 -p tcp --sport 443 -m state --state ESTABLISHED -j ACCEPT

 

iptables -A INPUT

This sets the IP rule to be appended into the INPUT table

 

-i eth0

This rule applys on the eth0 interface

 

-p tcp --sport 443

This sets the protocol to TCP and the source port is 443

 

-m state --state ESTABLISHED -j ACCEPT

This sets a match on the state of established that means if the connection has been established it will be accepted.

 

However this rule will deny any new connections as the rule needs the state of NEW

 

iptables -A INPUT -i eth0 -p tcp --sport 443 -m state --state NEW,ESTABLISHED -j ACCEPT

Share this post


Link to post
Share on other sites
ACCEPT udp -- anywhere anywhere udp spt:bootps state ESTABLISHED

 

This says, accept UDP, from any host, to any host FROM the source port (spt) of bootps with the an established state.

 

So, no your port isn't "open". Instead, only when your system has a connection already active, will it accept access from port 67 on the remote host.

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...