Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] OpenVPN + Shorewall, can't lookup hostname
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 726
Location: San Diego, CA

PostPosted: Fri Jan 18, 2008 1:09 am    Post subject: [Solved] OpenVPN + Shorewall, can't lookup hostname Reply with quote

Code:
  BoxA                        BoxB (with Shorewall)
+------------------+        +----------------------+
|  tun0: 10.8.0.6  |........|  tun0: 10.8.0.1      |
+------------------+        |  eth0: 64.203.11.43  |------- Internet
                            +----------------------+

I can ping 74.125.19.103 (i.e. "www.google.com") from BoxA. But "ping www.google.com" always times out. I think BoxA doesn't know where where the DNS server is.

When I added the following in BoxA's "/etc/resolv.conf" (I stole it from BoxB's "/etc/resolv.conf" file), BoxA can resolve all host names.

Code:
/etc/resolv.conf
nameserver 207.69.188.185

So, the question is, what do I need to do to make it automatic, so that I don't have to manually edit BoxA's "/etc/resolv.conf" file? It would be great if it auto-magically gets updated when BoxA's tun0 is up. Any suggestions?
__
sol


Last edited by solamour on Sun Mar 15, 2009 7:24 am; edited 1 time in total
Back to top
View user's profile Send private message
solamour
l33t
l33t


Joined: 21 Dec 2004
Posts: 726
Location: San Diego, CA

PostPosted: Sun Mar 15, 2009 7:24 am    Post subject: Reply with quote

This was a problem where BoxA was behind a firewall that blocked pretty much everything, except HTTP and HTTPS via a proxy server. Now BoxA is in a more relaxed environment, so it no longer has a problem looking up host names.
__
sol
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum