Portál AbcLinuxu, 25. dubna 2024 13:13
openvpn --dev tun1 --ifconfig 192.168.10.1 192.168.10.2
, tak mi to napise, ze mam definovat tun1 manualne v hostname.tun1 a pak pouzit script up.
Co bych tedy mel nadefinovat do toho hostname.tun1? A jak pak spustit openvpn? Muze me nekdo nakopnout?
Diky
openvpn --dev tun1 --ifconfig 192.168.10.1 192.168.10.2
Toto mi to vypsalo:
Mon Jun 13 21:40:59 2005 0: OpenVPN 1.6.0 i386-unknown-openbsd3.7 [SSL] [LZO] built on Mar 17 2005 Mon Jun 13 21:40:59 2005 1: ******* WARNING *******: all encryption and authentication features disabled -- all data will be tunnelled as cleartext Mon Jun 13 21:40:59 2005 2: /sbin/ifconfig tun1 delete ifconfig: SIOCDIFADDR: Can't assign requested address Mon Jun 13 21:40:59 2005 3: NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure Mon Jun 13 21:40:59 2005 4: /sbin/ifconfig tun1 192.168.10.1 192.168.10.2 mtu 1300 netmask 255.255.255.255 up Mon Jun 13 21:40:59 2005 5: TUN/TAP device /dev/tun1 opened Mon Jun 13 21:40:59 2005 6: UDPv4 link local (bound): [undef]:5000 Mon Jun 13 21:40:59 2005 7: UDPv4 link remote: [undef]Musel jsem to prerusit CTRL+C
^CMon Jun 13 21:41:36 2005 8: select : Interrupted system call (code=4) Mon Jun 13 21:41:36 2005 9: SIGINT received, exitingA ifconfig -a
lo0: flags=8049 UP,LOOPBACK,RUNNING,MULTICAST mtu 33224 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 fxp0: flags=8843 UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 address: 00:90:27:6f:e7:35 media: Ethernet autoselect (none) status: no carrier inet 192.168.12.254 netmask 0xffffff00 broadcast 192.168.12.255 inet6 fe80::290:27ff:fe6f:e735%fxp0 prefixlen 64 scopeid 0x1 pflog0: flags=141 UP,RUNNING,PROMISC mtu 33224 pfsync0: flags=0<> mtu 2020 enc0: flags=0 mtu 1536 tun1: flags=10 POINTOPOINT mtu 1300 inet 192.168.10.1 --> 192.168.10.2 netmask 0xffffffff tun0: flags=8011 UP,POINTOPOINT,MULTICAST mtu 1500 inet 203.221.243.8 --> 203.220.242.114 netmask 0xffffff00Myslite, ze je to ok? Nezda se mi ten vypis po prikazu openvpn. Jen to vse testuji, takze zatim bez klicu.
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.