From: Pavel <p2n@ya.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] iptables и цель ROUTE
Date: Fri, 08 Aug 2008 12:30:18 +0500
Message-ID: <g7gskk$bct$1@ger.gmane.org> (raw)
In-Reply-To: <489B1DE3.4050505@rambler.ru>
> $ ping ya.ru
> connect: Network is unreachable
Имя, как я понял, разрешить не удается?
Изменяются ли при выполнении ping'а счетчики в выводе:
iptables -t mangle -L OUTPUT -nv
> # ip route show table main
> 169.254.0.0/16 dev homelan scope link
> 192.168.0.0/16 via 10.12.7.1 dev homelan
> 172.16.0.0/12 via 10.12.7.1 dev homelan
> 10.0.0.0/8 via 10.12.7.1 dev homelan
> 224.0.0.0/4 dev homelan scope link
Сперва пропиши маршруты в homelan (и, возможно, еще к своему
DNS-серверу, если он у тебя не в ней) в таблицах 101 и 102.
Если не ошибаюсь, нужно добавить еще правило:
iptables -t nat -A POSTROUTING -m mark --mark 0/0 -j MASQUERADE
(выполняет маскарадинг _всех_ меченных пакетов). Во всяком случае
у меня только с маскарадингом и заработало.
--
Best regards, Pavel
email/xmpp: p2n-at-ya-dot-ru
next prev parent reply other threads:[~2008-08-08 7:30 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-05 10:11 Olvin
2008-08-05 10:36 ` Serge
2008-08-05 11:08 ` Olvin
2008-08-05 12:04 ` Serge
2008-08-05 12:20 ` Olvin
2008-08-05 13:40 ` Alexander Vasiliev
2008-08-05 14:47 ` Olvin
2008-08-06 7:44 ` Pavel
2008-08-07 16:08 ` Olvin
2008-08-08 7:30 ` Pavel [this message]
2008-08-08 21:15 ` Olvin
2008-08-08 21:28 ` Yuri Bushmelev
2008-08-08 22:00 ` Olvin
2008-08-10 12:18 ` Pavel
2008-08-10 14:36 ` Olvin
2008-08-11 4:20 ` Pavel
2008-08-10 12:39 ` Pavel
2008-08-10 14:40 ` Olvin
2008-08-11 6:33 ` Pavel
2008-08-05 12:16 ` Alexander Vasiliev
2008-08-05 13:31 ` Olvin
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='g7gskk$bct$1@ger.gmane.org' \
--to=p2n@ya.ru \
--cc=sysadmins@lists.altlinux.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
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git