I have a question. I want to force all trafic over VPN.
No VPN connection -> no internet.
I want to do that with iptables. I googled for a while and found some "solutions" but it's not transferable to my setup.
Here are some infos (vpn config file) :
VPN port : 1194
IP : only a hostname so I need to allow dns
I have some rules here but I don't know if it's enough.
i have a bridge linux system that before it connect to the internet i want to redirect all first to local login page which is already working with the following iptable rule. redirecting only port 80 to-destination 192.168.1.2 and drop all port which is local server ip. BUT its not DROPING ALL PORT only 80 is redirecting.
Can somebody expert on iptables guide me on my project.
I don't understand whats going on with my rootserver...
I have reset iptables and just opened the port for ssh.
Now suddenly over night I see that there are a various of ports open:
21,80, 135, 139, 445, 3128
Could it be that vsftpd for example put rules in automatically to allow input on port 21?
I also tried disabling iptables with this command:
I am running a server which needs UDP ports 1000:11000 opened, as well as TCP 10011 and 30033 open to function.
I have a set of iptables rules set to allow SSH and those ports, and intentionally left out 2010 as I am getting attacked on that port. The server does not block the incoming IP even when told to do so.