Community Support Forum
 
  OpenVPN.net  •  Forum Index  •  FAQ  

It is currently Sun Dec 21, 2014 11:58 am


Forum rules


If you would like help, here is a few things you will want to do in order to help us help you.

**Post your configs from client and server, without comments. you can strip comments in linux/bsd with something like this:
grep -vE '^#|^;|^$' server.conf
**Tell us your goal.
**If you are having problems connecting, post your logfiles from server and client after using verb 4 in both configs


Also, there are 2 things you should be aware of:

**Sometimes you cannot avoid tunneling over tcp, but if you can avoid it, DO. Why TCP Over TCP Is A Bad Idea: http://sites.inka.de/~bigred/devel/tcp-tcp.html
**You ONLY want to use dev tap if you are tunneling layer2 traffic, if you are using IP traffic you want tun. If you are using tap only for windows file sharing, look into running a WINS server instead.



Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
 ERROR: --dev tun also requires --ifconfig 
Author Message
 Post subject: ERROR: --dev tun also requires --ifconfig
PostPosted: Fri May 20, 2011 11:42 am 
OpenVPN Power User

Joined: Fri Apr 15, 2011 12:05 pm
Posts: 57
on client log

Quote:
Fri May 20 19:29:56 2011 OpenVPN 2.1.1 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Dec 12 2009
Fri May 20 19:29:56 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri May 20 19:29:56 2011 ******* WARNING *******: null cipher specified, no encryption will be used
Fri May 20 19:29:56 2011 LZO compression initialized
Fri May 20 19:29:56 2011 UDPv4 link local (bound): [undef]:9200
Fri May 20 19:29:56 2011 UDPv4 link remote:xxx.xxx.xxx.xxx:9200
Fri May 20 19:29:57 2011 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Fri May 20 19:30:06 2011 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1526', remote='link-mtu 1562'
Fri May 20 19:30:06 2011 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1500', remote='tun-mtu 1532'
Fri May 20 19:30:06 2011 WARNING: 'mtu-dynamic' is present in remote config but missing in local config, remote='mtu-dynamic'
Fri May 20 19:30:07 2011 [server] Peer Connection Initiated with xxx.xxxx.xxx.xxx:9200
Fri May 20 19:30:10 2011 TAP-WIN32 device [Local Area Connection 318] opened: \\.\Global\{EE5B49B3-FBF6-7572-93B8-425I326716E1}.tap
Fri May 20 19:30:10 2011 ERROR: --dev tun also requires --ifconfig
Fri May 20 19:30:10 2011 Exiting



server config

Quote:
mode server
local x.x.x.x
port 9200
proto udp
dev tun
tls-server
tun-mtu 1500
tun-mtu-extra 32
mssfix max
fragment 1300
ca /etc/openvpn/2.0/keys/ca.crt
cert /etc/openvpn/2.0/keys/server.crt
key /etc/openvpn/2.0/keys/server.key
dh /etc/openvpn/2.0/keys/dh1024.pem
plugin /usr/share/openvpn/plugin/lib/openvpn-auth-pam.so /etc/pam.d/login
client-cert-not-required
username-as-common-name
ifconfig 10.8.0.0 255.255.255.0
push "redirect-gate way def1"
push "dhcp-option DNS 208.67.222.222"
push "dchp-option DNS 4.2.2.1"
keepalive 5 30
cipher none
comp-lzo
persist-key
persist-tun
status server.log
resolve-retry 5
verb 1
mute 5
script-security 2
float


on client side

Quote:
client
dev tun
remote xx.xx.xx.xx
tls-client
ca server/server-3/ca.crt
ns-cert-type server
proto udp
port 9200
lport 53

resolv-retry infinite
local 0.0.0.0
bind
verb 1
mute 5
comp-lzo
cipher none
auth-user-pass server/password.txt


down "route-gateway dhcp"
down "pull route-method exe"
route-method exe
route-delay 5
reneg-sec 0

redirect-gateway def1
script-security 2
float


please help me

thank you


Offline
 Profile  
 
 Post subject: Re: ERROR: --dev tun also requires --ifconfig
PostPosted: Fri May 20, 2011 12:10 pm 
Forum Team
User avatar

Joined: Wed Jan 12, 2011 9:23 am
Posts: 3323
Location: Athens,Greece
hi there,

>ifconfig 10.8.0.0 255.255.255.0

try this

server 10.8.0.0 255.255.255.0

Michael.


Offline
 Profile  
 
 Post subject: Re: ERROR: --dev tun also requires --ifconfig
PostPosted: Fri May 20, 2011 1:45 pm 
OpenVPN Power User

Joined: Fri Apr 15, 2011 12:05 pm
Posts: 57
thank you sir i will try it


Offline
 Profile  
 
 Post subject: Re: ERROR: --dev tun also requires --ifconfig
PostPosted: Sat May 21, 2011 11:48 am 
OpenVPN Power User

Joined: Fri Apr 15, 2011 12:05 pm
Posts: 57
Quote:
Sat May 21 19:46:17 2011 FRAG TTL expired i=3
Sat May 21 19:46:22 2011 FRAG TTL expired i=4
Sat May 21 19:46:22 2011 FRAG TTL expired i=8
Sat May 21 19:46:27 2011 FRAG TTL expired i=14
Sat May 21 19:46:27 2011 FRAG TTL expired i=16
Sat May 21 19:46:37 2011 NOTE: --mute triggered...

what was the meaning of this error?


Offline
 Profile  
 
 Post subject: Re: ERROR: --dev tun also requires --ifconfig
PostPosted: Mon May 23, 2011 7:26 am 
Forum Team
User avatar

Joined: Wed Jan 12, 2011 9:23 am
Posts: 3323
Location: Athens,Greece
please dont double post

topic8185.html

closing topic.

Michael


Offline
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 


 Who is online 

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Jump to:  


phpBB SEO
[ Time : 0.106s | 14 Queries | GZIP : On ]

 
Index  |  FAQ


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group