Trouble with routing web traffic

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
jetzhou
OpenVpn Newbie
Posts: 1
Joined: Mon May 07, 2012 12:14 am

Trouble with routing web traffic

Post by jetzhou » Mon May 07, 2012 12:49 am

Hi all,

My first time trying to set up OpenVPN. I followed the HOWTO guide and was successfully connected but when I tried to route my web traffic, it seems that nothing gets through to my server.

My server is an Amazon EC2 box and my client is MacOS Lion. I'm using Tunnelblick on the Mac. I have run/tried the following:
  • ran iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE on my server
  • disabled firewall on the mac
  • enabled UDP 1194 on EC2 firewall
  • tried both dev tun and dev tap
  • tried using Amazon's name server with "push "dhcp-option DNS 172.16.0.23" as well as Google's 8.8.8.8
Here is my server config file: http://pastebin.com/izCBxk99
server ifconfig while running OpenVPN: http://pastebin.com/xM9w8kAA
server log, with one client connecting and trying to open a webpage after successful connection: http://pastebin.com/B1WAJ2XH

Client config file: http://pastebin.com/GzPeXE7E
client ifconfig while running OpenVPN: http://pastebin.com/ZQvvP9Z0
client log: http://pastebin.com/xmhEx77g

The only error I notice is in the client log, where it says:

Code: Select all

2012-05-06 20:43:44 us=732786 /sbin/ifconfig tap0 delete
                                        ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
2012-05-06 20:43:44 us=738214 NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
Could that be the problem? I found some webpage that said Tunnelblick used to have problems with Lion, but the version I'm using is higher than the one mentioned as the fix.

Little help? Thanks!

Post Reply