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

 

начало

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

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

семинари ...

документи

как да ...

 

 

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

Re: lug-bg: IPTABLES i ethernet [2]


  • Subject: Re: lug-bg: IPTABLES i ethernet [2]
  • From: nmblookup@xxxxxxxxx (device timeout)
  • Date: Sat, 22 Jun 2002 19:18:27 -0700 (PDT)



mi nqma kak da raboti kakto go pravish,
zashoto -m mac match-vaneto raboti samo za
FORWARD pravilata vyv veriga FILTER (tazi deto e
default) :)

az po princip pravq slednoto:

(eth0 - vytreshen, eth1 - vynshen iface)

iptables -P FORWARD DROP
iptables -m mac -A FORWARD -s x.x.x.x -d 0.0.0.0/0
--mac-source y:y:y:y:y:y -j ACCEPT
iptables -A FORWARD -s 0.0.0.0/0 -d x.x.x.x -j ACCEPT

(tova se griji izhodqshtiq trafik samo ot tozi
mac adres da se prehvyrlq kydeto i da bilo)

posle si pravish MASQUERADE pravilata:
iptables -t nat -A POSTROUTING -s x.x.x.x -d 0.0.0.0/0
-j MASQUERADE

cheers
anton ;]

p.s.: izvinqvai, zabravih da ti kaja tva ot samoto na4alo

__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
============================================================================
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.