Help configuring VPS Server ( IPTABLES )
Hello, I need help please.
I bought a VPS server, and I intend to use it as a server to OpenVas, but I want to set the following safety rules. - Only able to access the VPS server using VPN connection, configuring iptables correctly. OpenVAS ,access the server, if I'm first connected by VPN (port 9392) SSH access to the server, only if I first connected by VPN. Thank you very much! |
So you want this server to be accessed by VPN on port 9393? Once you are logged in to the VPN you are already past the firewall.
You just need to configure ssh to allow only connection from the vpn ip address range. A simple firewall could look like the following; Code:
# sample configuration for iptables service |
Hi !
And i have want to Openvas , only can rules with VPN conection , how can i configure it ? " gsad -mlisten=10.8.0.1 " ? Thanks!! |
VPN port is 1194 , and openvas server is 9392
|
Above is a start substitute the correct port number for what I have in --dport with what ever you have as your VPN port. This will allow you to VPN in.
Make sure your inside of the VPN uses RFC1918 address space and then you can add a rule that will only allow your internal space to connect to the OpenVAS port. |
Can you give me a sample of rule for only allow my internal space to connect to the OpenVAS por ( 9392 ) ? Thanks!:)
|
sure if you are using 192.168.1.1/24 as an internal address space:
Code:
-A INPUT -p tcp -m conntrack --ctstate NEW -s 192.168.1.0/24 -m tcp --dport 9393 -j ACCEPT |
As an internal space adress i use 10.8.0.X ( I believe it ) How can i see it ?
9393 , or 9392 ? Thanks !! And sorry :( |
Is google broken for you?
|
All times are GMT -5. The time now is 01:52 AM. |