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

 

начало

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

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

семинари ...

документи

как да ...

 

 

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

lug-bg: Logging of ip traffic


  • Subject: lug-bg: Logging of ip traffic
  • From: yavo@email.domain.hidden (Yavor Shahpasov)
  • Date: Tue, 15 Jul 2003 18:17:22 +0300


Opitvam se da logna malko traffic sas iptables, izpolzvam sledniat script

CHAIN_IP="213.149.187.30"
CHAIN_NAME="213_149_187_30"

iptables -N $CHAIN_NAME
iptables -N $CHAIN_NAME"_smtp"
iptables -N $CHAIN_NAME"_pop"
#and then add rules for example this one:
#iptables -A $CHAIN_NAME -p tcp --dport 80 -j ACCEPT
iptables -A $CHAIN_NAME -p tcp -j ACCEPT
iptables -A $CHAIN_NAME"_smtp" -p tcp --dport 25 -j ACCEPT
iptables -A $CHAIN_NAME"_pop" -p tcp --dport 110 -j ACCEPT

iptables -A FORWARD -s $CHAIN_IP -p tcp --dport 25 -j $CHAIN_NAME"_smtp"
iptables -A FORWARD -s $CHAIN_IP -p tcp --dport 110 -j $CHAIN_NAME"_pop"
iptables -A FORWARD -s $CHAIN_IP -p tcp -j $CHAIN_NAME

<p>kadeto 213.149.187.30 e ipto koeto iskam da broia, pravia tri chaina za da
meria vsichkiat traffic, pop3 i smtp

kato pusna
#iptables -L -n -v -x
vse mi pokazva 0, iavno e che neshto barkam

niakakvi saveti

Yavor

============================================================================
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.