oversim
Regular Contributor
Hi! For some reasons I had to modify external openvpn port from its default value (1194) to 22.
And this is ok for me, BUT some port scan daemon maybe when occurs on my public IP cause a lot of this entries in my AC87U system log.
Using google I tried something like
But openvpn log entries already spam my log :-D Any suggestion?
OpenVPN log verbosity is still to minimum value.
And this is ok for me, BUT some port scan daemon maybe when occurs on my public IP cause a lot of this entries in my AC87U system log.
Code:
Jun 21 13:54:21 openvpn[1332]: xxx.xxx.xxx.xxx WARNING: Bad encapsulated packet length from peer (21331), which must be > 0 and <= 1627 -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]
Jun 21 13:54:48 openvpn[1332]: xxx.xxx.xxx.xxx WARNING: Bad encapsulated packet length from peer (21331), which must be > 0 and <= 1627 -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]
Jun 21 13:55:35 openvpn[1332]: xxx.xxx.xxx.xxx WARNING: Bad encapsulated packet length from peer (21331), which must be > 0 and <= 1627 -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]
Jun 21 13:55:36 openvpn[1332]: xxx.xxx.xxx.xxx WARNING: Bad encapsulated packet length from peer (21331), which must be > 0 and <= 1627 -- please ensure that --tun-mtu or --link-mtu is equal on both peers -- this condition could also indicate a possible active attack on the TCP link -- [Attempting restart...]
Using google I tried something like
Code:
iptables -I INPUT -p tcp --dport 22 -m state --state NEW -m recent --set
iptables -I INPUT -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 10 --hitcount 2 -j DROP
But openvpn log entries already spam my log :-D Any suggestion?
OpenVPN log verbosity is still to minimum value.