Puncte:0

NAT interface after OVPN client connection

drapel th

I'm looking for advice for this special case.

What I want to achieve: my gateway should dial PPPoe, should establish OVPN connection as client to my OVPN server. Internet users from outside should reach my gateway PPPoe interface and be NAT-ed properly to my LAN

I have raspberry as my main GW for internet for my LAN with more computers.

eth0 - LAN

eth1 - Internet

I'm dialing my internet, so I have ppp0 interface [It is working properly] I'm NAT-ing few ports from internet to my LAN (web, git and so on) - [It is working properly]

Now I want to connect to my OVPN server with my Gateway, so entire network goes through this VPN connection - so I have tun0 interface. [It is working properly, EXCEPT NAT, Connections from outside to my ppp0 IP are not translated].

Problem: When I establish opvn connection from my Raspberry GW to my server in the internet to route all trafic from my LAN, through my GW through VPN, LAN->Internet is good (with new IP from my VPN server) but my NAT rules not working. When I'm somewhere in internet and trying to get home to my ppp0 IP address. NAT is translating packets. It is like established tun0 interface overrides everything on ppp0.

Effect:

What I see is, that NAT, seems, is routing traffic correctly to my PC in the lan but it is stuck on SYN_RCV status.

Questions:

I'm missing knowledge, what happens if my GW connects as ovpn client to my ovpn server in the internet.

What is necessary to do ?

1.Change ovpn configuration that ppp0 interface over WAN interface "should not be blocked somehow" ?

2.Is possible some routing loop ?

  1. Should I NAT at my VPN server ? VPN server->VPN client->NAT->LAN ?

If I turn off opvpn client, NAT is working without issues. I have everything managed via iptables.

Thank you very much for your advice

Overview

Nikita Kipriyanov avatar
drapel za
Ce înseamnă „NAT nu funcționează corect”? Ce este „corect”, la ce te așteptai? Ce ar trebui tradus în ce? Cum ar trebui să circule traficul? De asemenea, vă rugăm să-l arătați așa cum este configurat acum, adică adăugați o ieșire de `iptables-save` și `ip route` pe ambele routere (gateway-ul și serverul vpn). // VPN este doar o altă interfață de rețea. Nu corespunde niciunui hardware, deci este virtual, dar din punct de vedere al configurației acest lucru nu contează. Are adresă IP, cozi, se poate face referire la firewall etc, așa că nu contează dacă se numește eth0, tun0, ppp0 sau orice altceva.

Postează un răspuns

Majoritatea oamenilor nu înțeleg că a pune multe întrebări deblochează învățarea și îmbunătățește legătura interpersonală. În studiile lui Alison, de exemplu, deși oamenii își puteau aminti cu exactitate câte întrebări au fost puse în conversațiile lor, ei nu au intuit legătura dintre întrebări și apreciere. În patru studii, în care participanții au fost implicați în conversații ei înșiși sau au citit transcrieri ale conversațiilor altora, oamenii au avut tendința să nu realizeze că întrebarea ar influența – sau ar fi influențat – nivelul de prietenie dintre conversatori.