Monday, August 31. 2009
I've been using NetworkManager for
some time now, and appreciate how easy it makes both connecting to wifi as
well as VPNs. That said, I've had an issue with it that I only resolved
today.
When working from home, I prefer to use a VPN split tunnel setup -- I'm
behind a firewall all the time, and it's useful to be able to run virtual
machines while still connected to my VPN (e.g., when doing training or
webinar sessions). However, I noticed some months ago that this wasn't
working. I assumed at first it was a change in our network setup, but others
reported that the split tunnel was working fine. It's been particularly
problematic when on IRC -- if the VPN drops, I lose my IRC connection,
meaning I have to re-connect and re-claim my nick.
So, I did some searching, and found an interesting setting. In
NetworkManager, "Configure..." then "Edit" your VPN connection,
and navigate to the "IPv4 Settings" tab. Once there, click the button that
says "Routes..." and select the checkbox next to "Use this connection only
for resources on its network". Press Ok to close the dialog, then "Apply" to
exit out of the VPN configuration. Re-connect to the VPN, and you should be
all set.
Note: this will only work if your VPN server is configured to allow
split tunnels. Additionally, only do so if you are behind a firewall.
Practice safe networking.
Saturday, January 17. 2009
I use Linux on the desktop (currently Ubuntu),
but occasionally need to use Windows for things like webinars, OS-specific
testing, etc. I started using VirtualBox
for virtualization around six months ago, and have been reasonably
satisfied; Windows boots quickly, and everything "just works." That is,
until yesterday.
I was given a linux VM image running a web server and some applications I
needed to review. On top of that, I needed to do so over WebEx, so that I
could share my screen with somebody else. This meant I needed the following
to work:
- Internet access for my Windows VM
- Access to my linux VM from my Windows VM
- Ideally, access to both guest VMs from my linux host
- Ideally, internet access for my linux host
Continue reading "VirtualBox Networking"
Friday, May 16. 2008
My good friend, Rob, hosts my site for me, in return for helping with server
maintenance. After being on Gentoo for the past three years, though, we
decided it was time to switch to something a little easier to maintain, so
last night we wiped the system partitions and installed Ubuntu server.
I'll say this: the setup is much faster! However, we had a few gotchas that
surprised us -- it didn't setup our RAID array out-of-the-box, which led to
a good hour of frustration as we tried to verify that the install wouldn't
wipe it, and then to verify that we could re-assemble it. (We succeeded.)
Additionally, we second-guessed a few things we shouldn't have, which led to
needing to back out and reconfigure. But what was over a 12 hour install
with Gentoo we accomplished in a matter of a few hours with Ubuntu server --
so it was a huge success that way.
Unfortunately, our mysqldump of all databases... wasn't, a fact we
discovered only after importing it into the new system. I ended up losing my
blog database and PEAR channel database. Fortunately, the PEAR channel
has not changed at all in the past year, so we had an old backup that
worked, and I had a snapshot of my blog database from three weeks ago I was
able to use. As a result, there are a few missing entries, but for the most
part, all works. If you commented on one of those missing entries, my
apologies.
Now that the install is done, I'm also finalizing some design changes to my
blog -- it's time to leave the black and white for more colorful grounds.
Look for a revamp in the coming weeks!
Friday, January 25. 2008
In an effort to debug issues on a cluster, I was trying to determine which
machine on the cluster was causing the issue. My idea was that I could
insert a header token identifying the server.
My first idea was to add the directive 'Header add X-Server-Ip
"%{SERVER_ADDR}e" in my httpd.conf. However, due to the nature of our load
balancer, Apache was somehow resolving this to the load balancer IP address
on all machines of the cluster -- which was really, really not useful.
I finally stumbled on a good solution, however: you can set environment
variables in apachectl, and then pass them into the Apache environment using
the PassEnv directive from mod_env; once that's done, you can use the
environment variable anywhere.
In my apachectl, I added the line "export HOSTNAME=`hostname`". Then, in my
httpd.conf, I added first the line "PassEnv HOSTNAME", followed by the
directive 'Header add X-Server-Name "%{HOSTNAME}e"'. Voila! I now had the
hostname in the header, which gave me the information I needed for
debugging.
Saturday, October 20. 2007
Early in the week, I decided to avoid the release rush and go ahead and
update my laptop to Ubuntu's Gutsy
Gibbon release. Overall, it's quite good, with one caveat I'll elaborate on
later.
Continue reading "Gutsy Gibbon review"
|
|