From: Andrey Zloy <andrey.zloy@gmail.com>
To: gentoo-user-ru@lists.gentoo.org
Subject: Re: [gentoo-user-ru] port forwarding to loopback
Date: Tue, 28 Apr 2009 18:44:09 +0400 [thread overview]
Message-ID: <75b643ec0904280744l32b8fd1cle283b388ff68524f@mail.gmail.com> (raw)
In-Reply-To: <1613392244.20090428171827@mail.ru>
у меня вот так.
$IPTABLES -t nat -A PREROUTING -p TCP -s 0/0 -d $INET_IP --dport 7722
-j DNAT --to-destination $INET_IP:22
где INET_IP есть внешний адрес сервера
28 апреля 2009 г. 18:18 пользователь Sergey A. Kobzar
<sergey.kobzar@mail.ru> написал:
> Приветствую.
>
> Надоели bruteforce атаки на 22 порт. Хотелось бы его перевесить на
> другой порт средствами фаервола. Есть такое правило:
>
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 7722 -j DNAT --to 127.0.0.1:22
>
> но оно не работает. Google говорит что ядро блокирует пакеты на
> лупбэк если src ip != 127/8.
>
> Конфиг sshd править каждый раз после апдейта не хочется, xinetd
> заводить тоже.
>
> Есть еще варианты?
>
> --
> Sergey
>
>
>
next prev parent reply other threads:[~2009-04-28 14:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-28 14:18 [gentoo-user-ru] port forwarding to loopback Sergey A. Kobzar
2009-04-28 14:44 ` Andrey Zloy [this message]
2009-04-28 14:59 ` Re[2]: " Sergey A. Kobzar
2009-04-28 15:08 ` Re[3]: " Konstantin Astafjev
2009-04-28 15:21 ` Re[4]: " Sergey A. Kobzar
2009-04-28 15:28 ` Re[5]: " Konstantin Astafjev
2009-04-28 21:43 ` Re[6]: " Sergey A. Kobzar
2009-04-28 14:52 ` Konstantin Astafjev
2009-04-28 15:03 ` Re[2]: " Konstantin Astafjev
2009-04-28 15:05 ` Sergey A. Kobzar
2009-04-28 15:21 ` Re[3]: " Konstantin Astafjev
2009-04-28 15:40 ` Re[4]: " Sergey A. Kobzar
2009-04-29 4:44 ` Anton Kvashin
2009-05-02 4:07 ` Alex Efros
2009-05-02 8:03 ` Re[2]: " Sergey A. Kobzar
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=75b643ec0904280744l32b8fd1cle283b388ff68524f@mail.gmail.com \
--to=andrey.zloy@gmail.com \
--cc=gentoo-user-ru@lists.gentoo.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