OpenVPN Client mode Error: Could not find config file

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

abgchile
Posts: 2
Joined: Sun Jun 12, 2022 3:05 pm

Re: OpenVPN Client mode Error: Could not find config file

Post by abgchile »

Dear pal, I'm working with OpenVPN in client mode.

Is normal or wrong?

Regards from Chile.
Lantis wrote:
Sun Jun 12, 2022 6:50 pm
Are you saying you can’t DMZ when using openvpn as a client or server?
Last edited by abgchile on Sun Jun 12, 2022 10:15 pm, edited 1 time in total.

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN Client mode Error: Could not find config file

Post by Lantis »

The DMZ rule was only designed to work over WAN.
I'm not really sure a DMZ makes much sense over a VPN to begin with?
Y
In either case, you would need to write your own iptables rules sorry.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

abgchile
Posts: 2
Joined: Sun Jun 12, 2022 3:05 pm

Re: OpenVPN Client mode Error: Could not find config file

Post by abgchile »

First, thanks for your reply..

About the "sense": I've created VPN 'cause the mobile Internet doesn't allow to open ports since that service only provides IP private (not bridge mode). My intention is show my CWP Server (only in case of emergency for Optical fiber fail) to the network .

As aditional note, OpenVPN is pointed to an own SoftEther Server in remote location.

Question: Modifying iptables rules could I fix my problem?

Regards from Chile.
Lantis wrote:
Sun Jun 12, 2022 10:27 pm
The DMZ rule was only designed to work over WAN.
I'm not really sure a DMZ makes much sense over a VPN to begin with?
Y
In either case, you would need to write your own iptables rules sorry.
Last edited by abgchile on Sun Jun 12, 2022 10:52 pm, edited 1 time in total.

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN Client mode Error: Could not find config file

Post by Lantis »

The rules Gargoyle uses to create the DMZ are as follows:

Code: Select all

iptables -t nat -A "zone_"$from"_prerouting" -i $from_if -j DNAT --to-destination $to_ip
iptables -t filter -I "zone_"$from"_forward" -d $to_ip -j ACCEPT
Where
$from = wan
$from_if = wan
$to_ip = The IP you specify
Code Here

You would need to change:
$from = vpn
$from_if = tun0
$to_ip = The VPN IP of the device you want to DMZ

This is purely a guess, not a supported configuration, and something you would need to explore and troubleshoot on your own sorry. It isn't something the forum can really assist you with.
I don't think it will work, as you'll redirect VPN packets away from the openvpn process and hence the tunnel will die. But i might be wrong.

Individual port forwarding would be MUCH better/safer. Unfortunately the Gargoyle port forwarding has the same limitation, so again you'd need to write your own iptables rules.
Code Here
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

abgchile
Posts: 2
Joined: Sun Jun 12, 2022 3:05 pm

Re: OpenVPN Client mode Error: Could not find config file

Post by abgchile »

I know.. It's pure assumption but it would help me a lot if this solved the problem.

Thanks once again. I will try it tomorrow and I will comment to you.

Regards from Chile.
Lantis wrote:
Mon Jun 13, 2022 4:20 am
This is purely a guess, not a supported configuration, and something you would need to explore and troubleshoot on your own sorry. It isn't something the forum can really assist you with.
I don't think it will work, as you'll redirect VPN packets away from the openvpn process and hence the tunnel will die. But i might be wrong.

Individual port forwarding would be MUCH better/safer. Unfortunately the Gargoyle port forwarding has the same limitation, so again you'd need to write your own iptables rules.

ispyisail
Moderator
Posts: 5180
Joined: Mon Apr 06, 2009 3:15 am
Location: New Zealand

Re: OpenVPN Client mode Error: Could not find config file

Post by ispyisail »

Individual port forwarding would be MUCH better/safer. Unfortunately the Gargoyle port forwarding has the same limitation, so again you'd need to write your own iptables rules.
Code Here
I was just looking at this today for a problem I had

I wanted
LAN >> VPN

But I saw it was only
WAN >> LAN

No matter

smoke_15
Posts: 20
Joined: Tue Oct 22, 2013 9:23 pm
Location: California

Re: OpenVPN Client mode Error: Could not find config file

Post by smoke_15 »

Quick clarification, I'd like to configure my gargoyle v1.12 to connect to Surfshark VPN. Is this still not supported?

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN Client mode Error: Could not find config file

Post by Lantis »

Not on 1.12 if they require a username and password.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

smoke_15
Posts: 20
Joined: Tue Oct 22, 2013 9:23 pm
Location: California

Re: OpenVPN Client mode Error: Could not find config file

Post by smoke_15 »

Unfortunately a username/password are required for surfshark. Is it working in 1.14?

Lantis
Moderator
Posts: 6735
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: OpenVPN Client mode Error: Could not find config file

Post by Lantis »

Username and password is supported. I’m not aware of anyone trying surfshark specifically but it should be fine.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply