Skip to contentSkip to conversation

bug: can't get dhcp using --up option

Openvpn-devel [email protected]... 2 participants 3 messages May 25, 2010

lore
Share & tools
lore
#0 lore raw

Hi all,
I want to report this bug:

1. if I run:
openvpn --cd /etc/openvpn/ --script-security 2 --up "/etc/init.d/udhcpc
start" \
--config $CONFIG_DIR/$NAME.conf
udhcp doesnt set dhcp as it should even if you add -up-delay --down-pre

here is the openvpn log:
Tue Mar 23 10:03:11 2010 TUN/TAP device tap0 opened
Tue Mar 23 10:03:11 2010 TUN/TAP TX queue length set to 100
Tue Mar 23 10:03:11 2010 /etc/init.d/udhcpc start tap0 1500 1574 init
Starting Openvpn dhcp client for tap0: params: --now --no-zeroconf -i tap0 -s /etc/openvpn/udhcp.script --pidfile=/var/run/udhcpc..pid
tap0 Link encap:Ethernet HWaddr FE:3D:5B:EB:B1:7B
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

going to req dhcp for fe:3d:5b:eb:b1:7b
udhcpc (v0.9.9-pre) started
Sending discover...
Sending discover...
Sending discover...
Sending discover...
No lease, failing.
sleepnow
udhcpc (v0.9.9-pre) started
Sending discover...
Sending discover...
Sending discover...
Sending discover...
No lease, failing.
sleepnow

2. If I run:
openvpn --cd /etc/openvpn/ --config $CONFIG_DIR/$NAME.conf
then run /etc/init.d/udhcpc start
I get udhcp to setup dhcp.

so this bug report means that one can't use the --up argument to launch udhcpc as described in the official docs of openvpn

I am using openvpn on maemo linux on the N900 in layer 2 connection , so after establishing connection I need to issue a dhcp request.

Regards,
Niv

#1 lore raw
Quoted 1 line · [email protected]... wrote:

I want to report this bug:

Can you help debug it? Add instrumentation to that script, or maybe to a new script, and see what is different about the interface when script is being run outside openvpn.

//Peter

#2 lore raw

Hi Peter,
I am very glad to hear your response.
here is the traffic I got when using the -up argument to start udhpc :
https://bugs.maemo.org/attachment.cgi?id=2706

as you can see the request is sent and replay is received, but somehow it doesnt work.
I reported more info at https://bugs.maemo.org/show_bug.cgi?id=9679

As the dhcp request is set over the vpn , according to the wireshark capture, do I still need to use -ping , as suggested in the offical documents?

Quoted 18 lines · Peter Stuge
Quoted 1 line · [email protected]... wrote:

I want to report this bug:

Can you help debug it? Add instrumentation to that script, or maybe to a new script, and see what is different about the interface when script is being run outside openvpn.

//Peter

------------------------------------------------------------------------------

_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel