Hi maikcat,
ip-forwarding was usually already setup, but I think not for permanent, so I've done following:
sysctl.conf
net/ipv4/ip_forward=1
net/ipv4/conf/all/accept_redirects=0
net/ipv4/conf/default/accept_redirects=0
net/ipv6/conf/all/accept_redirects=0
net/ipv6/conf/default/accept_redirects=0
net/ipv4/icmp_echo_ignore_broadcasts=1
net/ipv4/icmp_ignore_bogus_error_responses=1
net/ipv4/icmp_echo_ignore_all=0
net/ipv4/conf/all/log_martians=0
net/ipv4/conf/default/log_martians=0
cat /proc/sys/net/ipv4/ip_forward
1
And setuped promisc mode for eth0:
root@ovpn-asg:/etc/openvpn# ifconfig
br0 Link encap:Ethernet HWaddr 00:50:56:98:08:e6
inet addr:10.34.0.195 Bcast:10.34.0.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe98:8e6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:21743 errors:0 dropped:0 overruns:0 frame:0
TX packets:4248 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1860002 (1.8 MB) TX bytes:564048 (564.0 KB)
eth0 Link encap:Ethernet HWaddr 00:50:56:98:08:e6
inet6 addr: fe80::250:56ff:fe98:8e6/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:24927 errors:0 dropped:0 overruns:0 frame:0
TX packets:4327 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2463976 (2.4 MB) TX bytes:567874 (567.8 KB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:28 errors:0 dropped:0 overruns:0 frame:0
TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3584 (3.5 KB) TX bytes:3584 (3.5 KB)
tap0 Link encap:Ethernet HWaddr c2:88:54:86:c8:51
inet6 addr: fe80::c088:54ff:fe86:c851/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:123 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:22709 (22.7 KB) TX bytes:468 (468.0 B)
But still no IP for the Client :-(
Client.log
Sun Jan 13 22:02:15 2013 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Sun Jan 13 22:02:15 2013 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sun Jan 13 22:02:15 2013 Control Channel Authentication: using 'ta.key' as a OpenVPN static key file
Sun Jan 13 22:02:15 2013 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jan 13 22:02:15 2013 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jan 13 22:02:15 2013 LZO compression initialized
Sun Jan 13 22:02:15 2013 Control Channel MTU parms [ L:1590 D:166 EF:66 EB:0 ET:0 EL:0 ]
Sun Jan 13 22:02:15 2013 Socket Buffers: R=[8192->8192] S=[64512->64512]
Sun Jan 13 22:02:15 2013 Data Channel MTU parms [ L:1590 D:1450 EF:58 EB:135 ET:32 EL:0 AF:3/1 ]
Sun Jan 13 22:02:15 2013 Local Options hash (VER=V4): 'a7133b47'
Sun Jan 13 22:02:15 2013 Expected Remote Options hash (VER=V4): 'c5677ab3'
Sun Jan 13 22:02:15 2013 UDPv4 link local: [undef]
Sun Jan 13 22:02:15 2013 UDPv4 link remote: x.x.x.x:1194
Sun Jan 13 22:02:15 2013 TLS: Initial packet from x.x.x.x:1194, sid=e85fd14e 451669fc
Sun Jan 13 22:02:16 2013 VERIFY OK: depth=1, x.x.x.x
Sun Jan 13 22:02:16 2013 VERIFY OK: nsCertType=SERVER
Sun Jan 13 22:02:16 2013 VERIFY OK: depth=0, x.x.x.x
Sun Jan 13 22:02:17 2013 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sun Jan 13 22:02:17 2013 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jan 13 22:02:17 2013 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Sun Jan 13 22:02:17 2013 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sun Jan 13 22:02:17 2013 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sun Jan 13 22:02:17 2013 [ovpn-asg-server] Peer Connection Initiated with x.x.x.x:1194
Sun Jan 13 22:02:19 2013 SENT CONTROL [ovpn-asg-server]: 'PUSH_REQUEST' (status=1)
Sun Jan 13 22:02:19 2013 PUSH: Received control message: 'PUSH_REPLY,route 0.0.0.0 255.255.255.255 net_gateway,ip-win32 dynamic 0 3600,route-gateway dhcp,ping 10,ping-restart 120'
Sun Jan 13 22:02:19 2013 OPTIONS IMPORT: timers and/or timeouts modified
Sun Jan 13 22:02:19 2013 OPTIONS IMPORT: route options modified
Sun Jan 13 22:02:19 2013 OPTIONS IMPORT: route-related options modified
Sun Jan 13 22:02:19 2013 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sun Jan 13 22:02:19 2013 ROUTE default_gateway=192.168.0.1
Sun Jan 13 22:02:19 2013 TAP-WIN32 device [LAN-Verbindung 4] opened: \\.\Global\{424DEBCB-C340-4476-8D97-F4090C768840}.tap
Sun Jan 13 22:02:19 2013 TAP-Win32 Driver Version 9.9
Sun Jan 13 22:02:19 2013 TAP-Win32 MTU=1500
Sun Jan 13 22:02:19 2013 Successful ARP Flush on interface [44] {424DEBCB-C340-4476-8D97-F4090C768840}
Sun Jan 13 22:02:24 2013 TEST ROUTES: 1/1 succeeded len=1 ret=1 a=0 u/d=up
Sun Jan 13 22:02:24 2013 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 255.255.255.255 192.168.0.1
Sun Jan 13 22:02:24 2013 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Sun Jan 13 22:02:24 2013 Route addition via IPAPI succeeded [adaptive]
Sun Jan 13 22:02:24 2013 Initialization Sequence Completed
Server.conf
.
.
.
Sun Jan 13 22:01:58 2013 us=104669 MULTI: new connection by client 'x.x.x.x' will cause previous active sessions by this client to be dropped. Remember to use the --duplicate-cn option if you want multiple clients using the same certificate or username to concurrently connect.
Sun Jan 13 22:01:58 2013 us=104737 MULTI: no dynamic or static remote --ifconfig address is available for x.x.x.x
Sun Jan 13 22:02:00 2013 us=165092 x.x.x.x PUSH: Received control message: 'PUSH_REQUEST'
Sun Jan 13 22:02:00 2013 us=165149 x.x.x.x send_push_reply(): safe_cap=960
Sun Jan 13 22:02:00 2013 us=165194 x.x.x.x SENT CONTROL [x.x.x.x]: 'PUSH_REPLY,route 0.0.0.0 255.255.255.255 net_gateway,ip-win32 dynamic 0 3600,route-gateway dhcp,ping 10,ping-restart 120' (status=1)
Sun Jan 13 22:02:00 2013 us=264861 x.x.x.xMULTI: Learn: 00:ff:42:4d:eb:cb -> x.x.x.x
Any ideas ?
Thanks
Bam