Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to open a port
#1

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:-

 



Code:
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

Reply
#2

does this mean port 67 is open?

output from iptables -L:

 

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

Reply
#3

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



Code:
iptables -A INPUT




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

 



Code:
-i eth0




This rule applys on the eth0 interface

 



Code:
-p tcp --sport 443




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

 



Code:
-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

 



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




Reply
#4

Quote: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.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)