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