|
|
|
|
|
|
| Author |
Message |
KerneL *nix forums beginner
Joined: 28 Jan 2005
Posts: 37
|
Posted: Sun Feb 06, 2005 3:28 pm Post subject:
iptables problem
|
|
|
i have this iptables script
| Quote: | iptables -P INPUT DROP
iptables -t nat -P PREROUTING DROP
iptables -A INPUT -i ! eth2 -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp -m multiport --destination-ports
22,4444,1980 -m state --state NEW -j ACCEPT
iptables -A INPUT -p tcp -i eth2 -j REJECT --reject-with tcp-reset
iptables -A INPUT -p udp -i eth2 -j REJECT --reject-with
icmp-port-unreachable
iptables -t nat -A PREROUTING -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 22 -m state
--state NEW -j ACCEPT
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth2 -j SNAT
--to 213.164.???.???
iptables -t nat -A POSTROUTING -s 192.168.11.0/24 -o eth2 -j SNAT --to 213.164.???.??? |
Why the port 22 is not open? |
|
| Back to top |
|
 |
mihai *nix forums addict
Joined: 27 Jan 2005
Posts: 71
|
Posted: Mon Feb 07, 2005 9:41 am Post subject:
re:iptables problem
|
|
|
modify this:
| Code: | iptables -A INPUT -p tcp -m multiport --destination-ports
22,4444,1980 -m state --state NEW -j ACCEPT
|
to this :
| Code: | iptables -A INPUT -p tcp -m multiport --destination-ports
22,4444,1980 -j ACCEPT |
|
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Tue Dec 02, 2008 5:51 pm | All times are GMT
|
|
Regierungsbezirke Bayern | Web Advertising | Neopets Cheats, Games and Neopoints | Cheap Loan | Best Credit Cards
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|