Hi, here is another inquiry on this one.

I already followed the steps and how-to but when I execute:

# openvpn --config server.conf

I got this error:

Mon Mar  1 00:03:12 2010 OpenVPN 2.1.1 i686-pc-linux-gnu [SSL] [EPOLL] built
on Feb 25 2010
Mon Mar  1 00:03:12 2010 NOTE: the current --script-security setting may
allow this configuration to call user-defined scripts
Mon Mar  1 00:03:12 2010 Diffie-Hellman initialized with 1024 bit key
Mon Mar  1 00:03:12 2010 TLS-Auth MTU parms [ L:1541 D:138 EF:38 EB:0 ET:0
EL:0 ]
Mon Mar  1 00:03:12 2010 ROUTE default_gateway=192.0.2.1
Mon Mar  1 00:03:12 2010 *Note: Cannot open TUN/TAP dev /dev/net/tun:
Permission denied (errno=13)*
Mon Mar  1 00:03:12 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP
interface
Mon Mar  1 00:03:12 2010 Cannot allocate TUN/TAP dev dynamically
Mon Mar  1 00:03:12 2010 Exiting

I also followed this one to solved that issue:
*
*
*Solution*

   1. Enter mkdir -p /dev/net
   2. Enter mknod /dev/net/tun c 10 200
   3. Enter chmod 600 /dev/net/tun
   4. Enter cat /dev/net/tun to test whether the TUN/TAP device is
   available:
      1. If you receive the message *cat: /dev/net/tun: File descriptor in
      bad state* your TUN/TAP device is ready for use
      2. If you receive the message *cat: /dev/net/tun: No such device* the
      TUN/TAP device was not successfully created
      3. We have to enable ip_forwarding and enable NAT by the command
      below. Masquerade will not work in VPS

# iptables *-t nat -A POSTROUTING -j SNAT --to xxx.xxx.xxx.xxx*

*
*

But I still got the same error. Hope somebody can help me out. Thanks.


Regards,


Tata
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
http://lists.linux.org.ph/mailman/listinfo/plug
Searchable Archives: http://archives.free.net.ph

Reply via email to