Thanks. I've been reading tutorial after tutorial. I've came up with a few ideas.
But since this is a co-located, stand alone type server, I am trying not to screw everything up.
I have the tables below defined, but I am still not seeing how to allow a certain IP to access a certain vnet.
# Allowed Inbound TCP Ports (ssh, smtp, dns, http, https, smtps, imaps, pop3s, rdp, webmin)
iptables -t filter -A INPUT -p tcp -m tcp -m multiport -i venet0 -j ACCEPT --dports 22,25,53,80,443,465,993,995,3389,10000
# Allowed Inbound UDP Ports (dns, openvpn)
iptables -t filter -A INPUT -p udp -m udp -m multiport -i venet0 -j ACCEPT --dports 53,1194
# Allowed Inbound ICMP (echo-request)
iptables -t filter -A INPUT -p icmp -m icmp -i venet0 --icmp-type echo-request -j ACCEPT
# Drop Inbound if No Existing Connection (invalid, new)
iptables -t filter -A INPUT -m state -i venet0:2 --state NEW,INVALID -j DROP
# Allowed Outbound TCP Ports (smtp, dns, http, https)
iptables -t filter -A OUTPUT -p tcp -m tcp -m multiport -o venet0 -j ACCEPT --dports 20,21,22,25,53,80,443
# Allowed Outbound UDP Ports (WoL, dns)
iptables -t filter -A OUTPUT -p udp -m udp -m multiport -o venet0 -j ACCEPT --dports 9,53
# Allowed Outbound ICMP (echo-request)
iptables -t filter -A OUTPUT -p icmp -m icmp -o venet0 --icmp-type echo-request -j ACCEPT
# Drop Outbound if No Existing Connection (invalid, new)
iptables -t filter -A OUTPUT -m state -o venet0 --state NEW,INVALID -j DROP
iptables -A INPUT -j DROP -p all
|
Recent comments
1 day 1 hour ago
1 day 6 hours ago
1 day 11 hours ago
1 day 12 hours ago
2 days 3 hours ago
2 days 3 hours ago
2 days 8 hours ago
2 days 14 hours ago
2 days 15 hours ago
2 days 16 hours ago