I can not configure iptables to work only with openvpn
Hi,
I am currently using debian 6 with openvpn installed. I can connect from my laptop to my server without firewall.But for more security I need firewall. I found a iptables rules but after I connect to my server from my laptop, I started firefox but couldn't able to view any webpages. I just want to allow SSH and openvpn traffic to my server.(and disable all other ports) I am really stuck at iptables. Please help me how to do it |
Post the rules you're using with any sensitive information removed. You haven't provided any information that can be used to help you.
SAM |
Quote:
I found this rule, applied and couldn't access websites through my server: Quote:
|
After changing iptables -P INPUT DROP to iptables -P INPUT ACCEPT, I am able to surf websites now. But did I allowed all connections or still only ssh and openvpn port only open?
|
Quote:
if there is no service running or they run with default configuration, it is mostly safe. Do not panic :) If you want to DROP everything coming to you linux except "openvpn" and "ssh", add following rule to your script: Code:
iptables -A INPUT -i tun+ -j ACCEPT Edit: do not trust scripts much. visit netfilter website and read tutorials manuels and other documents. use iptables scritps if u understand what it exactly does. |
All times are GMT -5. The time now is 04:51 AM. |