Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235890 > unrolled thread

Re: [Openvpn-users] surf the internet through openvpn

Started byStella Ashburne <rewefie@gmx.com>
First post2021-06-05 08:10 +0200
Last post2021-06-05 10:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.debian.user

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [Openvpn-users] surf the internet through openvpn Stella Ashburne <rewefie@gmx.com> - 2021-06-05 08:10 +0200
    Re: [Openvpn-users] surf the internet through openvpn Joe <joe@jretrading.com> - 2021-06-05 10:20 +0200

#235890 — Re: [Openvpn-users] surf the internet through openvpn

FromStella Ashburne <rewefie@gmx.com>
Date2021-06-05 08:10 +0200
SubjectRe: [Openvpn-users] surf the internet through openvpn
Message-ID<CmxFn-87q-5@gated-at.bofh.it>
Hi guys,

This mailing list is for discussions concerning Debian.

For discussions on specific topics such as openvpn, please post your questions on https://forums.openvpn.net/ or https://www.reddit.com/r/OpenVPN/
 


Sent: Saturday, June 05, 2021 at 7:04 AM
From: "Bonno Bloksma" <b.bloksma@tio.nl>
To: "debian-user list" <debian-user@lists.debian.org>
Cc: "Fermin Francisco" <abcddo@yahoo.com>
Subject: Re: [Openvpn-users] surf the internet through openvpn

Please keep the discussion on the list.
And sorry for top posting, this client refuses todo otherwise :-(
 
Make sure traffic coming from the openvpn client can indeed access the internet, test with ping.  If that does not work solve that problem first. Look at routing and NAT on your openvpn server.
 
Once that works try what happens with a browser, go to whatismyip.com or a similar website. The client ip the website sees should the ip of your openvpn server.
If ping works but http(s) does not you probably have a firewall issue.
 
If that works then SMTP should work as well as long as the receiving server has no problem with the discrepency in the ip number, hostname and PTR record.
 

Bonno Bloksma (mobile)
 
 Op 4 jun. 2021 om 22:01 heeft Fermin Francisco <abcddo@yahoo.com> het volgende geschreven:
 


Hi!
My problems are two:
 
After I putted the push "redirect-gateway local def1" in server conf file.
 
1. OpenVPN Linux's clients can't surf into the internet (Windows clients can surf into the internet), but can connect to remote software.
2. SMTP cannot worked (Thunderbird).
 
 
Sorry, my english is not good.
 
 
José Fermín Francisco Ferreras Registered User #579535 (LinuxCounter.net)
 
 

El viernes, 4 de junio de 2021 02:05:40 a. m. AST, Bonno Bloksma <b.bloksma@tio.nl> escribió:
 
 

Hello

> How can I make openvpn clients (Linux clients) surf the internet through openvpn using the public ip of the openvpn server

The client config should contain the line
redirect-gateway local def1

This will let OpenVpn add some lines to you routing table that make sure that:
- your client can still reach the OpenVPN server via the normal internet connection.
- All other traffic will leave the client via the openVPN tunnel.

Make sure the routing on your openVPN server and your firewall are set up correctly.

>(the openvpn server is on Windows)? And also that emails using Thunderbird can work with this method (that emails can enter and leave without problems).
This is just routing via another node, it has no influence on the protocol as the client still initiates all traffic sessions.

Ps. If you want you can push the line from the servers if you want to have it configures on all clients.

Bonno Bloksma
 

[toc] | [next] | [standalone]


#235896

FromJoe <joe@jretrading.com>
Date2021-06-05 10:20 +0200
Message-ID<CmzHc-OD-5@gated-at.bofh.it>
In reply to#235890
On Sat, 5 Jun 2021 07:59:40 +0200
Stella Ashburne <rewefie@gmx.com> wrote:

> Hi guys,
> 
> This mailing list is for discussions concerning Debian.
> 
> For discussions on specific topics such as openvpn, please post your
> questions on https://forums.openvpn.net/ or
> https://www.reddit.com/r/OpenVPN/ 
> 
> 

In general, yes, particularly with standalone applications.

But most applications when supplied through a distribution are
customised to some degree, and this is particularly true of networky
things like openvpn. The things that get customised are the fine
details of how the program interacts with the rest of the distribution,
and that is often where people need help, particularly if they are
familiar with a different distribution. Different distributions may
well have different policies about /etc/resolv.conf, for example, a
file often central to vpn issues.

So I'd agree that openvpn forums are the best place to get information
on openvpn, but there may be questions about it that only users of both
Debian and openvpn can answer. If I had recently had doings with
openvpn, I could probably have answered this one, but the last time was
too long ago. Configurations often change between Debian versions. There
are two broad applications of openvpn, either pure point-to-point for
secure remote access or, as in this case, route everything through the
tunnel to place the client effectively within the server's network.
I've always used it for the latter function, and I know that the advice
given so far has been necessary, but I couldn't say from recent
knowledge if it is sufficient.

It does seem likely in this case that the trouble is in the
configuration file. There are many of these around the Net, but it is
likely that most of the Debian-specific tweaks to openvpn affect this
file and a Debian-compatible example is vital. 

It is also possible that someone using a firewall generating
application may need to do something to it, or that may happen
automatically, while someone using raw iptables or nftables will already
know they have to do this themselves. An entirely new kind of interface
appears with openvpn, and the firewall may be written to reject
anything from previously-unknown interfaces. Some firewall issues may be
Debian-dependent as they are also networky things.

-- 
Joe

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web