Skip to content

u/LuaMilkshake

In this archive from Mar 2012 to Oct 2017

0
posts
16
comments
0
media
143
score

Are you pointing your default route over the VPN? This may be that the re-connection process is trying to resolve the VPN server hostname over the (now non-functional) VPN interface.

You could solve this by statically defining the VPN server IP in the OpenVPN config file (ie remote 192.0.2.33 [...] instead of remote vpn.example.com [...]) or defining the hostname in /etc/hosts. This probably won't work if PIA's server hostnames are dynamic in their configs or if they rotate "entry" IPs though.

Another solution would be to statically route your DNS servers to not use the VPN interface, though if you're using PIA for privacy reasons this is obviously not a good solution.

Edit: You could also set up a local caching resolver (such as unbound) which would locally hold the DNS record. The efficacy of this is dependent on how long the TTLs are for PIA's records, though.

2 points

I've found Arch impossible to get right on VMWare, whereas with VirtualBox it's just a matter of

# pacman -S --needed virtualbox-guest-utils virtualbox-guest-dkms linux-headers base-devel
# systemctl enable vboxservice
# systemctl enable dkms

Using the DKMS modules is optional (and can be finicky), but nice when the virtualbox-guest-modules package lags behind the latest VBox release.

0 points

This method (custom repo via repo-add) is how I set up an isolated lab environment using Arch. It worked perfectly. The only difference was I served my /var/cache/pacman over HTTP with nginx (and used Server = http://cachemachine/pacman on the clients).

1 points

Do you have IPTables configured on your systems? You should at least have something to the tune of this in /etc/iptables/iptables.rules (as well as ip6tables.rules, with address changes if relevant):

*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
COMMIT

If you're running a web server as well, you'll want something like (before the COMMIT line):

-A INPUT -p tcp --dport 80 -j ACCEPT
# (if you use HTTPS)
-A INPUT -p tcp --dport 443 -j ACCEPT

and you mentioned ssh, which I assume only comes from your laptop:

# (replace 192.0.2.10 with your laptop's IP)
-A INPUT -p tcp --dport 22 -s 192.0.2.10 -j ACCEPT

Enable/apply all of this with systemctl:

systemctl enable iptables
systemctl start iptables
systemctl enable ip6tables
systemctl start ip6tables

EDIT: Added the table name and COMMIT lines to the file, other than that the original post was still correct. Amazing what you memorize when you've written it hundreds of times.

3 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

โ†orโ†’
Previous / next file
โ†‘orโ†“
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.