From: "nassri abokhalaf" <nassri@oninet.pt>
To: netfilter@lists.netfilter.org
Subject: Port Redirection
Date: Wed, 30 Apr 2003 15:43:44 +0100 [thread overview]
Message-ID: <0bf101c30f26$e69bcd10$4802a8c0@oninet.pt> (raw)
Hello to all,
I need to redirect some services to my ssh port.
my firewall has two interfaces and i want to redirect all traffic to port 22,
so i added this code to my firewall script
...initialisation code....
My_PORTS_TCP="22 ftp telnet squid socks kazaa back_or"
echo -n "TCP port "
for i in $My_PORTS_TCP;
do
echo -n "$i "
$IPT -t nat -A PREROUTING -p TCP -d $EXTNET --dport $i -j REDIRECT --to-ports 22
fi
done
but when i do tcpdump to port 22 i see no traffic at all, although i am doing ftp to my firewall !?!
questions:
1-Is the rule wrong ?
2-Is the tcpdump leastning in a raw socket before redirection ?
3-How can i confirm that redirection is functioning ?
please comment,
nassri
next reply other threads:[~2003-04-30 14:43 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-30 14:43 nassri abokhalaf [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-08-05 4:57 Port redirection Steve Fink
2009-08-05 14:04 ` Pascal Hambourg
2009-08-05 18:30 ` Steve Fink
2006-08-13 0:18 port redirection Brian Lewis
2006-08-13 6:18 ` Graham Murray
2006-08-13 7:54 ` Brian Lewis
[not found] <200505312248.j4VMmKcQ016084@rti02.co-lo.riverviewtech.net>
2005-05-31 23:37 ` Port redirection Taylor, Grant
2005-05-31 19:25 Chris NoSurname
2005-05-31 22:42 ` Anthony Sadler
2005-06-01 2:45 ` Jason Opperisano
2003-04-30 14:38 Port Redirection ABOKHALAF, Nassri Abdellatif
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='0bf101c30f26$e69bcd10$4802a8c0@oninet.pt' \
--to=nassri@oninet.pt \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox