niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » Linux
iptables problem
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
KerneL
*nix forums beginner


Joined: 28 Jan 2005
Posts: 37

PostPosted: Sun Feb 06, 2005 3:28 pm    Post subject: iptables problem Reply with quote

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

PostPosted: Mon Feb 07, 2005 9:41 am    Post subject: re:iptables problem Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Tue Dec 02, 2008 5:51 pm | All times are GMT
navigation Forum index » *nix » Linux
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

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
[ Time: 0.4271s ][ Queries: 16 (0.1648s) ][ GZIP on - Debug on ]