Need help regarding OpenVPN & Squid3 proxy server

Andi Reyhan

The network

The proxy server is set to only allow traffic from a certain IP network (192.168.100.0/24 from DHCP server) to pass and only allow access to certain websites in the Apache server that are whitelisted.

I have an OpenVPN server in another machine (Server PC) next to the proxy server's (Router PC), which spits out it's own DHCP IP (10.8.0.4/30) to connected clients. So my client computer has 2 interface and 2 IP, one that's connected to the router PC and has IP from DHCP server (192.168.100.0/24), and a TAP interface with OpenVPN's IP (10.8.0.6/30).

As per my knowledge, when I send request to open a website in my Apache2 server, OpenVPN encrypts the packet going out and is using it's own IP to send those packets (hiding the original IP).

My question is how does the request gets through Squid, despite not having the IP that is allowed (it's using the VPN's IP of 10.8.0.4/30 instead of 192.168.100.0/24) in the proxy setting, yet the proxy still works and blocks the non-whitelist website?

P.S. It's for a final exam in my Vocabulary School in Network & Computer Engineering, and it is not mentioned whether the OpenVPN supposed to be installed in the Server PC or Router PC.

Daniel B

As per my knowledge, when I send request to open a website in my Apache2 server, OpenVPN encrypts the packet going out and is using it's own IP to send those packets (hiding the original IP).

I feel a great misunderstanding here. OpenVPN does not intercept traffic or anything. It appears on your computer as a regular network interface with an IP address and all. Only traffic that leaves over this virtual network interface is sent over the encrypted VPN connection.

So, how is traffic directed over the VPN interface? With regular routing. On Windows, you could use route print to inspect the routing table. Unless you set something up (e.g. using OpenVPN’s redirect-gateway option), only traffic to 10.8.0.4/30 (likely an effect of topology net30) will use the VPN connection.

If OpenVPN is configured with redirect-gateway def1, you still have a more specific route going to the Squid host. Contacting anything in 192.168.100.0/24 will simply not use the VPN.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Need help regarding storm

From Dev

Need some help regarding webservices

From Dev

Need help regarding printf() in c

From Dev

Need some help regarding this Lambda expression in java

From Dev

Need help regarding Sprite Movements in AndEngine

From Dev

Need help regarding programming challenges solving algorithms

From Dev

Need help regarding animating position of multiple layers

From Dev

Need help regarding random string generation python

From Dev

Need Help Regarding Uploading Video Files

From Dev

Need help regarding programming challenges solving algorithms

From Dev

Need help regarding animating position of multiple layers

From Dev

Need help regarding lzss compression in C

From Dev

Need help regarding angular.element

From Dev

I need some help regarding §8/5 in the spec

From Dev

Need help regarding .htaccess url rewriting for country specific subdirectory urls

From Dev

Need one help regarding fetching data value from response

From Dev

Need Help regarding OSPF and RIP in NS2

From Dev

Need some help regarding an if-else piece of code

From Dev

How to setup OpenVPN in ubuntu 16.04 desktop over a Proxy server?

From Dev

How to setup OpenVPN in ubuntu 16.04 desktop over a Proxy server?

From Dev

Java help regarding loops

From Dev

MySQL help regarding AND AND OR

From Dev

Need help in SQL Server Remote Access

From Dev

Need Help Speeding Up a SQL Server Query

From Dev

Need Help to open ftp server and login with batch

From Dev

SQL Server: Filter by layers ... Need help or advise

From Dev

I need help configuring my DHCP server

From Dev

Need help sending location data to a server in Xcode

From Dev

Need help in understanding terminology (display server)

Related Related

HotTag

Archive