iptables - вопрос по настройке

Post new topic   Reply to topic    DD-WRT Forum Index -> Использование и установка DD-WRT
Author Message
beastx
DD-WRT User


Joined: 19 Dec 2008
Posts: 180
Location: Russia

PostPosted: Thu Feb 26, 2009 13:03    Post subject: iptables - вопрос по настройке Reply with quote
Появилась необходимость промаркировать пакеты:

Code:
iptables -A INPUT -t mangle -p tcp -s 91.122.192.0/19 -j MARK --set-mark 0x10
iptables -A INPUT -t mangle -p tcp -s 92.101.64.0/18 -j MARK --set-mark 0x10
iptables -A INPUT -t mangle -p tcp -s 95.53.0.0/18 -j MARK --set-mark 0x10


И сразу же ступор... Мало того что с iptables никогда не сталкивался, так еще и с никсами опыт на нуле фактически...

Куда собаственно вводить и как просмотреть существующие правила, чтобы убедиться что все встало как надо и куда надо Embarassed
Sponsor
SaintReset
DD-WRT Guru


Joined: 13 Jan 2009
Posts: 1732

PostPosted: Thu Feb 26, 2009 14:08    Post subject: Reply with quote
administration - command - вставляем команды как есть и нажимаем Save Firewall
просмотр... заходим по ssh на роутер и набираем команду iptables -L -n -v
мануал по ключам - http://linux.die.net/man/8/iptables или на русском - http://www.opennet.ru/docs/RUS/iptables/

_________________
I can change this world, but G*d doesn`t give me the source (c)
Gooooглю за деньги
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Использование и установка DD-WRT All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum