|
|
Re: APF not logging on openVZ VE [message #13173 is a reply to message #13115] |
Tue, 22 May 2007 15:41 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
Yes they ale....
101: kmemsize 2433162 3269484 92244787 101469265 0
lockedpages 0 0 4504 4504 0
privvmpages 18945 28959 154698 170167 0
shmpages 165 501 15469 15469 0
dummy 0 0 0 0 0
numproc 25 37 4000 4000 0
physpages 4101 5339 0 2147483647 0
vmguarpages 0 0 154698 2147483647 0
oomguarpages 4101 5339 154698 2147483647 0
numtcpsock 10 13 4000 4000 0
numflock 10 17 1000 1100 0
numpty 0 0 400 400 0
numsiginfo 0 3 1024 1024 0
tcpsndbuf 105092 160764 14364262 30748262 0
tcprcvbuf 163840 283564 14364262 30748262 0
othersockbuf 44720 74488 7182131 23566131 0
dgramrcvbuf 0 4200 7182131 7182131 0
numothersock 34 47 4000 4000 0
dcachesize 0 0 20149933 20754432 0
numfile 1304 2156 36032 36032 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 420 420 1000 1000 0
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
|
|
|
|
|
|
|
|
Re: APF not logging on openVZ VE [message #13831 is a reply to message #13668] |
Wed, 06 June 2007 11:52 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
Vasily Tarasov
Messages: 1345 Registered: January 2006
|
Senior Member |
|
|
Hello,
I've just found time to check ipt_LOG module in VE. It works for me, please, look at the transcript:
# lsmod | grep ipt_LOG
# modprobe ipt_LOG # !!!! Loading ipt_LOG kernel module before VE start!
# lsmod | grep ipt_LOG
ipt_LOG 8192 0
x_tables 17928 13 ipt_LOG,xt_tcpudp,xt_state,xt_length,ipt_ttl,xt_tcpmss,ipt_TCPMSS,xt_multiport,xt_limit,ipt_tos,ipt_REJECT,iptable_nat,ip_tables
# cat /etc/vz/conf/4.conf | grep ipt_LOG
# cat /etc/vz/vz.conf | grep ipt_LOG
# vim /etc/vz/vz.conf # !!!! Aadding ipt_LOG to the list of available in VE
# cat /etc/vz/vz.conf | grep ipt_LOG
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state ipt_LOG"
# vzctl start 4
Starting VE ...
VE is mounted
Adding IP address(es): 10.0.1.2
Setting CPU units: 1000
Setting devices
File resolv.conf was modified
VE start in progress...
# vzctl enter 4
entered into VE 4
# dmesg
# iptables -A OUTPUT -j LOG
# echo $?
0
# ping mail.ru
PING mail.ru (194.67.57.126) 56(84) bytes of data.
64 bytes from mail.ru (194.67.57.126): icmp_seq=0 ttl=119 time=18.2 ms
64 bytes from mail.ru (194.67.57.126): icmp_seq=1 ttl=119 time=17.8 ms
--- mail.ru ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 17.815/18.056/18.297/0.241 ms, pipe 2
# dmesg
IN= OUT=venet0 SRC=10.0.1.2 DST=192.168.1.1 LEN=53 TOS=0x00 PREC=0x00 TTL=64 ID=59520 DF PROTO=UDP SPT=32768 DPT=53 LEN=33
IN= OUT=venet0 SRC=10.0.1.2 DST=194.67.57.126 LEN=84 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=ICMP TYPE=8 CODE=0 ID=15423 SEQ=0
IN= OUT=venet0 SRC=10.0.1.2 DST=192.168.1.1 LEN=72 TOS=0x00 PREC=0x00 TTL=64 ID=59539 DF PROTO=UDP SPT=32768 DPT=53 LEN=52
IN= OUT=venet0 SRC=10.0.1.2 DST=194.67.57.126 LEN=84 TOS=0x00 PREC=0x00 TTL=64 ID=0 DF PROTO=ICMP TYPE=8 CODE=0 ID=15423 SEQ=1
So, two important points:
1) Load ipt_LOG kernel module on VE0 _before_ VE start
2) Add ipt_LOG to the list of available modules in vz.conf
HTH,
Vasily
|
|
|
Re: APF not logging on openVZ VE [message #15137 is a reply to message #13831] |
Thu, 19 July 2007 20:47 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
ugob
Messages: 271 Registered: March 2007
|
Senior Member |
|
|
Output of lsmod:
ip_tables 23568 14 iptable_nat,ipt_state,ipt_length,ipt_ttl,ipt_tcpmss,ipt_TCPMSS,iptable_mangle,ipt_multiport,ipt_limit,ipt_LOG,ipt_TOS,ipt_tos,ipt_REJECT,iptable_filter
Relevant line in /etc/sysconfig/iptables-config:
IPTABLES_MODULES="ipt_REJECT ipt_tos ipt_TOS ipt_LOG ip_conntrack ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length ipt_state iptable_nat ip_nat_ftp"
Now I restart the VE, and check /var/log/messages.
I tried connecting to a forbidden port, no log.
Please read the manual before asking questions:
http://download.openvz.org/doc/OpenVZ-Users-Guide.pdf
Please have a look at the wiki before asking questions:
http://wiki.openvz.org/Main_Page
|
|
|