Openvpn - portforward

It’s probably some basic port forwarding issue, i’m lost now anyway.

I have Openvpn configured and it seem to work fine. I made a port forward rule with as Source a configured openVPN client - Destination is an internal Host - Protocol is a service with the port I use for SSH.

In the firewall log I do see the FORWARDFW rule from the VPNclient to the server over the said port. I don´t get my SSH connection however.

What am I missing here?

(The firewall is up-to-date btw)

Regards,

Edwin

If you have configured a “Host-to-Net Virtual Private Network (RoadWarrior)” connection, have you selected the “zones” to which the client should have access?

edit

PS. The OpenVPN RoadWarrior client has an IP address from the “Dynamic Client Subnet” or “Static IP address pools” — the destination host must accept connections from this IP address.

1 Like

Thanks for your reply iptom!

I’m indeed trying to configure a roadwarrior vpn. The option below Advanced client options was selected (BLUE in my case).

I get a nice green “Connected” in the WUI when I make the VPN connection, so it seems to connect okay.
I use Static IP Address pools, so in the firewall rules I can select the name of the Openvpn client as source, my internal server (on BLUE) as destination and my SSH-port as (preset) protocol. It all seems very straightforward, it just doesn’t do what I want :slight_smile:.

The (Debian) server I’m trying to SSH into via VPN allows my SSH-port from anywhere. Disabling the firewall completely on that machine didn’t help either.

The workstation I’m running the vpn-clientsoftware is Linux Mint btw. Using “Sudo openvpn –config .ovpn” to setup the vpn.

Regards,

Ediwn.

After adding the OpenVPN RoadWarrior client connection, you don’t need to set up port forwarding.

You “automatically” :wink: get access to the “zone” selected in “Advanced client options.”

1 Like

unless the default behavior firewall is set to blocked

Yes, of course – then “automagic” doesn’t work :wink:

However, in IPFire, this setting is allowed by default.

The author of this thread does not mention that he changed this setting.

Regards

1 Like