Linux-Bulgaria.ORG
навигация

 

начало

пощенски списък

архив на групата

семинари ...

документи

как да ...

 

 

Предишно писмо Следващо писмо Предишно по тема Следващо по тема По Дата По тема (thread)

Re: lug-bg: iptables "match mark" problem


  • Subject: Re: lug-bg: iptables "match mark" problem
  • From: danchev@email.domain.hidden (George Danchev)
  • Date: Fri, 7 Mar 2003 10:58:10 +0200


On 07 03 2003 10:31, Nickola Kolev wrote:
<em class="quotelev1">>  Georgi wrote:
<em class="quotelev1">> 
<em class="quotelev1">>
<em class="quotelev2">>   > Çäðàâåéòå,
<em class="quotelev2">>  >
<em class="quotelev2">>  > 
<em class="quotelev2">>  > èäåÿòà å ñëåäíàòà ìàðêèðàì ñè áúëãàðñêèòå ìðåæè ñ 16. Âñè÷êè îñòàíàëè
<em class="quotelev2">>  > ñ 8. Èñêàì äà èçïîëçâàì òîâà ìàðêèðàíå çà äà ìîãà çàÿâêèòå çà áúëãàðñêè
<em class="quotelev2">>  > ìðåæè äà ãè ìàñêèðàì çàä îïðåäåëåíî IP.
<em class="quotelev2">>  > 
<em class="quotelev2">>  > iptables -A PREROUTING -t nat -s 10.0.0.0/8 --match mark --mark 16 -j
<em class="quotelev2">>  > SNAT --to 193.110.159.3
<em class="quotelev1">>
<em class="quotelev1">> 
<em class="quotelev1">> Ñòðóâà ìè ñå, ÷å SNAT å âàëèäåí ñàìî â POSTROUTING âåðèãàòà, ò.å. òî÷íî
<em class="quotelev1">> â ìîìåíòà, ïðåäè äàäåí ïàêåò äà íàïóñíå ìàøèíàòà òè. Ïðîáâàé ñ:
<em class="quotelev1">> 
<em class="quotelev1">> iptables -A POSTROUTING -t nat -s 10.0.0.0/8 --match mark --mark 16 -j SNAT
<em class="quotelev1">> --to 193.110.159.3 

Opps, Nikola prav si, az nedogledah i pomislih 4e se opitva da --set-match 
deto ne trebe.. a toj ima grizhi match-vaneto

SNAT
This target is only valid in the nat table, in the POSTROUTING chain.  It 
specifies that the source  address  of the packet should be modified (and all 
future packets in this connection will also be mangled), and rules should 
cease being examined.  It takes one type of option....

Ta hronologiqta e takava e 4e pyrvo v PREROUTING vegigata v mangle 
--set-mark-va i posle v POSTROUTING v nat --match mark-va ;-)


-- 
printk("Greets, fr33zb1\n");
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================




 

наши приятели

 

линукс за българи
http://linux-bg.org

FSA-BG
http://fsa-bg.org

OpenFest
http://openfest.org

FreeBSD BG
http://bg-freebsd.org

KDE-BG
http://kde.fsa-bg.org/

Gnome-BG
http://gnome.cult.bg/

проект OpenFMI
http://openfmi.net

NetField Forum
http://netField.ludost.net/forum/

 

 

Linux-Bulgaria.ORG

Mailing list messages are © Copyright their authors.