1-which is the script that sets the rule for iptables if i want to be aBLE TO ACCESS port 20000 from any machine on the network how would i open it
On Monday 26 May 2003 10:26 pm, illustre wrote:
1-which is the script that sets the rule for iptables
if i want to be aBLE TO ACCESS port 20000 from any machine on the network how would i open it
Well you can use iptables directly- the only way i know how. Run these commands as root. Select which one you want TCP or UDP? iptables -A INPUT -p tcp --dport 20000 -j ACCEPT iptables -A INPUT -p udp --dport 20000 -j ACCEPT or if you mean you want to be able to access that port on the internet such as forwarding it for internal machines so that its sure not to be blocked by other rules. (You need this rule first above other forwading or deny rules) iptables -A FORWARD -p tcp --dport 20000 -j ACCEPT iptables -A FORWARD -p udp --dport 20000 -j ACCEPT HTH If you can be a BIT more specific I can tailor the rules better for you. Such as tcp or udp, incoming or outgoing, do you mean that your locacl network can connect to THIS box FROM the local network, or can connect to some internet machiens running this port, or even have this port forwaded from the internet to your box runnign a service on port 20000. ---------------------- Eric Bambach Eric@CISU.net ----------------------
participants (2)
-
Eric
-
illustre