Форум обсуждения систем  

Вернуться   Форум обсуждения систем "Умный дом", проектов Ардуино, OpenWRT и других DIY устройств > Форум умного дома > Сделай сам > OpenWRT/LEDE

Ответ
 
Опции темы Поиск в этой теме Опции просмотра
Старый 12.03.2014, 14:56   #11
paulerr
Senior Member
 
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1152
paulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond repute
По умолчанию Re: VPN и OpenWRT

И
Код:
lsmod |grep pptp
paulerr вне форума   Ответить с цитированием
Старый 12.03.2014, 20:44   #12
paulerr
Senior Member
 
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1152
paulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond repute
По умолчанию Re: VPN и OpenWRT

Конфиг из поста№6, только поменял wwan3g на wwan
/etc/config/network
Код:
config interface 'vpn'
	option ifname 'pptp-vpn'
	option proto 'pptp'
	option username '*******'
	option password '*******'
	option server 'vpn.lan2lan.ru'
	option buffering '1'
	option defaultroute '0'
	option peerdns '0'

config route
	option interface 'vpn'
	option target '192.168.99.0'
	option gateway '46.38.52.90'
	option netmask '255.255.255.0'

config interface 'wwan'
	option proto 'dhcp'
и в /etc/config/firewall
Код:
config zone
	option name 'wan'
	option input 'REJECT'
	option output 'ACCEPT'
	option forward 'REJECT'
	option masq '1'
	option mtu_fix '1'
	option network 'wan wan6 wwan3g wwan'
приводить /etc/config/wireless, думаю не интересно, там все стандартно, что пишет luci при конфигурировании из него wifi как клиента.
что кажет ifconfig
Код:
root@OpenWrt:/# ifconfig 
br-lan    Link encap:Ethernet  HWaddr 64:70:02:76:43:87  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1057 errors:0 dropped:0 overruns:0 frame:0
          TX packets:863 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:116071 (113.3 KiB)  TX bytes:469776 (458.7 KiB)

eth0      Link encap:Ethernet  HWaddr 64:70:02:76:43:87  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1063 errors:0 dropped:6 overruns:0 frame:0
          TX packets:863 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:131229 (128.1 KiB)  TX bytes:469776 (458.7 KiB)
          Interrupt:4 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:37250 errors:0 dropped:0 overruns:0 frame:0
          TX packets:37250 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2467746 (2.3 MiB)  TX bytes:2467746 (2.3 MiB)

pptp-vpn  Link encap:Point-to-Point Protocol  
          inet addr:192.168.99.1  P-t-P:46.38.52.90  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1320  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:58 (58.0 B)  TX bytes:76 (76.0 B)

wlan0     Link encap:Ethernet  HWaddr 64:70:02:76:43:87  
          inet addr:192.168.0.133  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:559 errors:0 dropped:99 overruns:0 frame:0
          TX packets:278 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:48068 (46.9 KiB)  TX bytes:26887 (26.2 KiB)

root@OpenWrt:/#
paulerr вне форума   Ответить с цитированием
Старый 13.03.2014, 08:00   #13
igordp777
Member
 
Регистрация: 29.10.2012
Сообщений: 44
Вес репутации: 0
igordp777 is an unknown quantity at this point
По умолчанию Re: VPN и OpenWRT

lsmod | grep pptp:
Код:
root@CyberWrt:~# lsmod | grep pptp
gre                     1826  2 pptp,ip_gre,
ppp_generic            19666  4 pptp,pppox,ppp_mppe,ppp_async,
pppox                   1322  1 pptp,
pptp                   13280  0
root@CyberWrt:~#
ifconfig:
Код:
root@CyberWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 90:F6:52:B5:FB:02
          inet addr:192.168.100.100  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::92f6:52ff:feb5:fb02/64 Scope:Link
          inet6 addr: fdfc:4c91:1e6b::1/60 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:358 errors:0 dropped:0 overruns:0 frame:0
          TX packets:411 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:30098 (29.3 KiB)  TX bytes:70930 (69.2 KiB)

eth0      Link encap:Ethernet  HWaddr 90:F6:52:B5:FB:02
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:358 errors:0 dropped:0 overruns:0 frame:0
          TX packets:411 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:35110 (34.2 KiB)  TX bytes:70930 (69.2 KiB)
          Interrupt:4

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:65536  Metric:1
          RX packets:16 errors:0 dropped:0 overruns:0 frame:0
          TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1648 (1.6 KiB)  TX bytes:1648 (1.6 KiB)

wlan0     Link encap:Ethernet  HWaddr 90:F6:52:B5:FB:02
          inet addr:192.168.10.101  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::92f6:52ff:feb5:fb02/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:78 errors:0 dropped:0 overruns:0 frame:0
          TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7518 (7.3 KiB)  TX bytes:10317 (10.0 KiB)

root@CyberWrt:~#
dmesg:
Код:
root@CyberWrt:~# dmesg
[    0.000000] Linux version 3.10.4 (cyberwrt@cyberwrt) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r37816) ) #1 Mon Nov 25 16:28:55 MSK 2013
[    0.000000] MyLoader: sysp=7ab7c29c, boardp=07ac6486, parts=24fed496
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 80320b60, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line:  board=TL-MR3020 console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 28716k/32768k available (2305k kernel code, 4052k reserved, 602k data, 224k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.080000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is TP-LINK TL-MR3020
[    0.350000] bio: create slab <bio-0> at 0
[    0.360000] Switching to clocksource MIPS
[    0.360000] NET: Registered protocol family 2
[    0.370000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.370000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.370000] TCP: Hash tables configured (established 512 bind 512)
[    0.380000] TCP: reno registered
[    0.380000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.390000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.400000] NET: Registered protocol family 1
[    0.400000] PCI: CLS 0 bytes, default 32
[    0.420000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.420000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.430000] msgmni has been set to 56
[    0.440000] io scheduler noop registered
[    0.440000] io scheduler deadline registered (default)
[    0.440000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.460000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11) is a AR933X UART
[    0.460000] console [ttyATH0] enabled, bootconsole disabled
[    0.480000] ath79-spi ath79-spi: master is unqueued, this is deprecated
[    0.480000] m25p80 spi0.0: found w25q32, expected m25p80
[    0.490000] m25p80 spi0.0: w25q32 (4096 Kbytes)
[    0.490000] 5 tp-link partitions found on MTD device spi0.0
[    0.500000] Creating 5 MTD partitions on "spi0.0":
[    0.500000] 0x000000000000-0x000000020000 : "u-boot"
[    0.510000] 0x000000020000-0x000000122828 : "kernel"
[    0.510000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.530000] 0x000000122828-0x0000003f0000 : "rootfs"
[    0.530000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.540000] mtd: partition "rootfs" set to be root filesystem
[    0.550000] mtd: partition "rootfs_data" created automatically, ofs=0x280000, len=0x170000
[    0.560000] 0x000000280000-0x0000003f0000 : "rootfs_data"
[    0.560000] 0x0000003f0000-0x000000400000 : "art"
[    0.570000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.590000] libphy: ag71xx_mdio: probed
[    0.590000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.150000] ag71xx ag71xx.0 eth0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.160000] TCP: cubic registered
[    1.160000] NET: Registered protocol family 17
[    1.160000] Bridge firewalling registered
[    1.170000] 8021q: 802.1Q VLAN Support v1.8
[    1.180000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.190000] Freeing unused kernel memory: 224K (80338000 - 80370000)
[    2.930000] usbcore: registered new interface driver usbfs
[    2.940000] usbcore: registered new interface driver hub
[    2.940000] usbcore: registered new device driver usb
[    3.050000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.050000] ehci-platform: EHCI generic platform driver
[    3.060000] ehci-platform ehci-platform: EHCI Host Controller
[    3.060000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    3.070000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    3.100000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    3.100000] hub 1-0:1.0: USB hub found
[    3.100000] hub 1-0:1.0: 1 port detected
[    3.450000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    6.230000] eth0: link up (100Mbps/Full duplex)
[    6.760000] jffs2: notice: (329) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 12 of xref (0 dead, 3 orphan) found.
[    6.800000] eth0: link down
[    8.230000] Loading modules backported from Linux version master-2013-06-27-0-gdcfa6d5
[    8.240000] Backport generated by backports.git backports-20130617-4-ge3220f5
[    8.270000] cfg80211: Calling CRDA to update world regulatory domain
[    8.270000] cfg80211: World regulatory domain updated:
[    8.280000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    8.280000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.290000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.300000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[    8.310000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.310000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    8.690000] NET: Registered protocol family 10
[    9.200000] ath: EEPROM regdomain: 0x0
[    9.200000] ath: EEPROM indicates default country code should be used
[    9.200000] ath: doing EEPROM country->regdmn map search
[    9.200000] ath: country maps to regdmn code: 0x3a
[    9.200000] ath: Country alpha2 being used: US
[    9.200000] ath: Regpair used: 0x3a
[    9.200000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[    9.210000] cfg80211: Calling CRDA for country: US
[    9.220000] cfg80211: Regulatory domain changed to country: US
[    9.220000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[    9.230000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
[    9.240000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
[    9.240000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.250000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.260000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[    9.270000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
[    9.280000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[    9.370000] PPP generic driver version 2.4.2
[    9.440000] PPP MPPE Compression module registered
[    9.440000] gre: GRE over IPv4 demultiplexor driver
[    9.480000] ip_gre: GRE over IPv4 tunneling driver
[    9.500000] NET: Registered protocol family 24
[    9.520000] PPTP driver version 0.8.5
[   12.330000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   12.330000] device eth0 entered promiscuous mode
[   12.340000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   13.300000] eth0: link up (100Mbps/Full duplex)
[   13.300000] br-lan: port 1(eth0) entered forwarding state
[   13.310000] br-lan: port 1(eth0) entered forwarding state
[   13.310000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.320000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   15.310000] br-lan: port 1(eth0) entered forwarding state
[   17.400000] cfg80211: Calling CRDA for country: RU
[   17.410000] cfg80211: Regulatory domain changed to country: RU
[   17.410000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   17.420000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm)
[   17.430000] cfg80211:   (5735000 KHz - 5835000 KHz @ 20000 KHz), (N/A, 3000 mBm)
[   18.660000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.790000] wlan0: authenticate with 20:7c:8f:98:d8:49
[   20.830000] wlan0: send auth to 20:7c:8f:98:d8:49 (try 1/3)
[   20.830000] wlan0: authenticated
[   20.850000] wlan0: associate with 20:7c:8f:98:d8:49 (try 1/3)
[   20.860000] wlan0: RX AssocResp from 20:7c:8f:98:d8:49 (capab=0x431 status=0 aid=10)
[   20.870000] wlan0: associated
[   20.870000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
root@CyberWrt:~#
igordp777 вне форума   Ответить с цитированием
Старый 13.03.2014, 16:04   #14
paulerr
Senior Member
 
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1152
paulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond repute
По умолчанию Re: VPN и OpenWRT

А как ругается на поднятие интерфейса руками, что нибудь типа ifconfig vpn up ? Что-то в Ваших логах нет и намека на PPTP :-(
paulerr вне форума   Ответить с цитированием
Старый 13.03.2014, 21:27   #15
paulerr
Senior Member
 
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1152
paulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond repute
По умолчанию Re: VPN и OpenWRT

Поставьте вместо CyberWrt чистую прошивку Openwrt.
Или добавляйте в CyberWrt как минимум iptables, иначе пакеты вам что будет натить?
Код:
root@CyberWrt:/# opkg list_installed
base-files - 146-r37816
busybox - 1.19.4-7
dnsmasq - 2.66-3
dropbear - 2012.55-2
iw - 3.10-1
jshn - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
kernel - 3.10.4-1-6910dd36396650e8ef41514cdbde550a
kmod-ath - 3.10.4+2013-06-27-1
kmod-ath9k - 3.10.4+2013-06-27-1
kmod-ath9k-common - 3.10.4+2013-06-27-1
kmod-cfg80211 - 3.10.4+2013-06-27-1
kmod-crypto-aes - 3.10.4-1
kmod-crypto-arc4 - 3.10.4-1
kmod-crypto-core - 3.10.4-1
kmod-crypto-hash - 3.10.4-1
kmod-crypto-manager - 3.10.4-1
kmod-gpio-button-hotplug - 3.10.4-1
kmod-input-core - 3.10.4-1
kmod-leds-gpio - 3.10.4-1
kmod-ledtrig-default-on - 3.10.4-1
kmod-ledtrig-netdev - 3.10.4-1
kmod-ledtrig-timer - 3.10.4-1
kmod-lib-crc-ccitt - 3.10.4-1
kmod-lib-crc16 - 3.10.4-1
kmod-mac80211 - 3.10.4+2013-06-27-1
kmod-nls-base - 3.10.4-1
kmod-usb-core - 3.10.4-1
kmod-usb2 - 3.10.4-1
libblobmsg-json - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
libc - 0.9.33.2-1
libgcc - 4.6-linaro-1
libjson-c - 0.11-2
libjson-script - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
libnl-tiny - 0.1-3
libubox - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
libubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
libuci - 2013-06-11.1-1
mtd - 20
netifd - 2013-07-16-2674941b06c1ec67f1aff1bff9212e1372106641
opkg - 618-3
procd - 2013-08-16-85a5ce27f5f02e4ddab6916d69ba7f7375d289d4-1
uboot-envtools - 2013.07-rc1-2
ubox - 2013-08-16.1-5290ec879aa4d9f4192df00aad4434b0f0afa872
ubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
ubusd - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
uci - 2013-06-11.1-1
uhttpd - 2013-07-31-fae8886f8aa5d996c8de607abea8b677216549b5
wpad-mini - 20130807-1
root@CyberWrt:/#

Последний раз редактировалось paulerr; 13.03.2014 в 21:32.
paulerr вне форума   Ответить с цитированием
Старый 14.03.2014, 07:09   #16
igordp777
Member
 
Регистрация: 29.10.2012
Сообщений: 44
Вес репутации: 0
igordp777 is an unknown quantity at this point
По умолчанию Re: VPN и OpenWRT

Цитата:
А как ругается на поднятие интерфейса руками, что нибудь типа ifconfig vpn up ? Что-то в Ваших логах нет и намека на PPTP :-(
ifconfig vpn up:
Код:
root@CyberWrt:~# ifconfig vpn up
ifconfig: SIOCGIFFLAGS: No such device
root@CyberWrt:~#
Странно, модуль ppp-mod-pptp подгружен и
lsmod |grep pptp это подтверждает:
Код:
root@CyberWrt:~# lsmod | grep pptp
gre                     1826  2 pptp,ip_gre,
ppp_generic            19666  4 pptp,pppox,ppp_mppe,ppp_async,
pppox                   1322  1 pptp,
pptp                   13280  0
root@CyberWrt:~#
igordp777 вне форума   Ответить с цитированием
Старый 28.03.2014, 21:03   #17
skyvlad
Junior Member
 
Регистрация: 21.07.2013
Сообщений: 19
Вес репутации: 0
skyvlad is an unknown quantity at this point
По умолчанию Re: VPN и OpenWRT

Здравствуйте!
Помогите поднять на cyberwrt

ifconfig vpn up
Код:
root@CyberWrt:/www/> ifconfig vpn up
ifconfig: SIOCGIFFLAGS: No such device
lsmod |grep pptp
Код:
root@CyberWrt:/www/> lsmod |grep pptp
pptp                   13280  0 
pppox                   1322  1 pptp
gre                     1826  2 pptp,ip_gre
ppp_generic            19666  4 pptp,pppox,ppp_mppe,ppp_async
opkg list-installed
Код:
root@CyberWrt:/www/> opkg list-installed

base-files - 146-r37816
block-mount - 2013-08-16.1-5290ec879aa4d9f4192df00aad4434b0f0afa872
busybox - 1.19.4-7
coreutils - 8.16-1
coreutils-base64 - 8.16-1
coreutils-stty - 8.16-1
davfs2 - 1.4.7-2
dnsmasq - 2.66-3
dropbear - 2012.55-2
e2fsprogs - 1.42.4-1
fdisk - 2.21.2-2
firewall - 2013-08-14
iptables - 1.4.19.1-2
iw - 3.10-1
jshn - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
kernel - 3.10.4-1-6910dd36396650e8ef41514cdbde550a
kmod-ath - 3.10.4+2013-06-27-1
kmod-ath9k - 3.10.4+2013-06-27-1
kmod-ath9k-common - 3.10.4+2013-06-27-1
kmod-cfg80211 - 3.10.4+2013-06-27-1
kmod-crypto-aes - 3.10.4-1
kmod-crypto-arc4 - 3.10.4-1
kmod-crypto-core - 3.10.4-1
kmod-crypto-ecb - 3.10.4-1
kmod-crypto-hash - 3.10.4-1
kmod-crypto-manager - 3.10.4-1
kmod-crypto-sha1 - 3.10.4-1
kmod-fs-ext4 - 3.10.4-1
kmod-fuse - 3.10.4-1
kmod-gpio-button-hotplug - 3.10.4-1
kmod-gre - 3.10.4-1
kmod-hid - 3.10.4-1
kmod-hid-generic - 3.10.4-1
kmod-i2c-core - 3.10.4-1
kmod-input-core - 3.10.4-1
kmod-input-evdev - 3.10.4-1
kmod-ipt-conntrack - 3.10.4-1
kmod-ipt-core - 3.10.4-1
kmod-ipt-nat - 3.10.4-1
kmod-iptunnel - 3.10.4-1
kmod-ipv6 - 3.10.4-1
kmod-leds-gpio - 3.10.4-1
kmod-ledtrig-default-on - 3.10.4-1
kmod-ledtrig-netdev - 3.10.4-1
kmod-ledtrig-timer - 3.10.4-1
kmod-lib-crc-ccitt - 3.10.4-1
kmod-lib-crc16 - 3.10.4-1
kmod-mac80211 - 3.10.4+2013-06-27-1
kmod-mppe - 3.10.4-1
kmod-nls-base - 3.10.4-1
kmod-ppp - 3.10.4-1
kmod-pppox - 3.10.4-1
kmod-pptp - 3.10.4-1
kmod-scsi-core - 3.10.4-1
kmod-slhc - 3.10.4-1
kmod-sound-core - 3.10.4-1
kmod-usb-audio - 3.10.4-1
kmod-usb-core - 3.10.4-1
kmod-usb-hid - 3.10.4-1
kmod-usb-serial - 3.10.4-1
kmod-usb-serial-cp210x - 3.10.4-1
kmod-usb-storage - 3.10.4-1
kmod-usb2 - 3.10.4-1
kmod-video-core - 3.10.4-1
kmod-video-uvc - 3.10.4-1
kmod-video-videobuf2 - 3.10.4-1
libblkid - 2.21.2-2
libblobmsg-json - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
libc - 0.9.33.2-1
libexpat - 2.0.1-1
libext2fs - 1.42.4-1
libfuse - 2.9.0-2
libgcc - 4.6-linaro-1
libid3tag - 0.15.1b-3
libip4tc - 1.4.19.1-2
libip6tc - 1.4.19.1-2
libiwinfo - 46
libiwinfo-lua - 46
libjpeg - 6b-1
libjson-c - 0.11-2
libjson-script - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
liblua - 5.1.5-1
libmad - 0.15.1b-3
libneon - 0.29.6-2
libnl-tiny - 0.1-3
libopenssl - 1.0.1e-2
libpthread - 0.9.33.2-1
libubox - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
libubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
libubus-lua - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
libuci - 2013-06-11.1-1
libuci-lua - 2013-06-11.1-1
libuuid - 2.21.2-2
libxtables - 1.4.19.1-2
lua - 5.1.5-1
luci - svn-r9933-1
luci-app-firewall - svn-r9933-1
luci-i18n-english - svn-r9933-1
luci-i18n-russian - svn-r9933-1
luci-lib-core - svn-r9933-1
luci-lib-ipkg - svn-r9933-1
luci-lib-nixio - svn-r9933-1
luci-lib-sys - svn-r9933-1
luci-lib-web - svn-r9933-1
luci-mod-admin-core - svn-r9933-1
luci-mod-admin-full - svn-r9933-1
luci-proto-core - svn-r9933-1
luci-proto-ppp - svn-r9933-1
luci-proto-relay - svn-r9933-1
luci-sgi-cgi - svn-r9933-1
luci-theme-base - svn-r9933-1
luci-theme-bootstrap - svn-r9933-1
madplay - 0.15.2b-3
mjpg-streamer - r181-1
mtd - 20
netifd - 2013-07-16-2674941b06c1ec67f1aff1bff9212e1372106641
opkg - 618-3
ppp-mod-pptp - 2.4.5-10
procd - 2013-08-16-85a5ce27f5f02e4ddab6916d69ba7f7375d289d4-1
relayd - 2011-10-24-4e8f1fa4ca2b176500362843a9e57ea5abd4b7a3
resolveip - 2
ssmtp - 2.64-4
uboot-envtools - 2013.07-rc1-2
ubox - 2013-08-16.1-5290ec879aa4d9f4192df00aad4434b0f0afa872
ubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
ubusd - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
uci - 2013-06-11.1-1
uhttpd - 2013-07-31-fae8886f8aa5d996c8de607abea8b677216549b5
uhttpd-mod-ubus - 2013-07-31-fae8886f8aa5d996c8de607abea8b677216549b5
wpad-mini - 20130807-1
zlib - 1.2.8-1
skyvlad вне форума   Ответить с цитированием
Старый 29.03.2014, 12:36   #18
skyvlad
Junior Member
 
Регистрация: 21.07.2013
Сообщений: 19
Вес репутации: 0
skyvlad is an unknown quantity at this point
По умолчанию Re: VPN и OpenWRT

А вот при таком раскладе я стал онлайн, но состыковать два клиента пока не получилось.
Код:
root@CyberWrt:/www/> opkg list-installed

base-files - 146-r37816
block-mount - 2013-08-16.1-5290ec879aa4d9f4192df00aad4434b0f0afa872
busybox - 1.19.4-7
coreutils - 8.16-1
coreutils-base64 - 8.16-1
coreutils-stty - 8.16-1
davfs2 - 1.4.7-2
dnsmasq - 2.66-3
dropbear - 2012.55-2
e2fsprogs - 1.42.4-1
fdisk - 2.21.2-2
firewall - 2013-08-14
iptables - 1.4.19.1-2
iw - 3.10-1
jshn - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
kernel - 3.10.4-1-6910dd36396650e8ef41514cdbde550a
kmod-ath - 3.10.4+2013-06-27-1
kmod-ath9k - 3.10.4+2013-06-27-1
kmod-ath9k-common - 3.10.4+2013-06-27-1
kmod-cfg80211 - 3.10.4+2013-06-27-1
kmod-crypto-aes - 3.10.4-1
kmod-crypto-arc4 - 3.10.4-1
kmod-crypto-core - 3.10.4-1
kmod-crypto-ecb - 3.10.4-1
kmod-crypto-hash - 3.10.4-1
kmod-crypto-manager - 3.10.4-1
kmod-crypto-sha1 - 3.10.4-1
kmod-fs-ext4 - 3.10.4-1
kmod-fuse - 3.10.4-1
kmod-gpio-button-hotplug - 3.10.4-1
kmod-gre - 3.10.4-1
kmod-hid - 3.10.4-1
kmod-hid-generic - 3.10.4-1
kmod-i2c-core - 3.10.4-1
kmod-input-core - 3.10.4-1
kmod-input-evdev - 3.10.4-1
kmod-ipt-conntrack - 3.10.4-1
kmod-ipt-core - 3.10.4-1
kmod-ipt-nat - 3.10.4-1
kmod-iptunnel - 3.10.4-1
kmod-ipv6 - 3.10.4-1
kmod-leds-gpio - 3.10.4-1
kmod-ledtrig-default-on - 3.10.4-1
kmod-ledtrig-netdev - 3.10.4-1
kmod-ledtrig-timer - 3.10.4-1
kmod-lib-crc-ccitt - 3.10.4-1
kmod-lib-crc16 - 3.10.4-1
kmod-mac80211 - 3.10.4+2013-06-27-1
kmod-mppe - 3.10.4-1
kmod-nls-base - 3.10.4-1
kmod-ppp - 3.10.4-1
kmod-pppox - 3.10.4-1
kmod-pptp - 3.10.4-1
kmod-scsi-core - 3.10.4-1
kmod-slhc - 3.10.4-1
kmod-sound-core - 3.10.4-1
kmod-usb-audio - 3.10.4-1
kmod-usb-core - 3.10.4-1
kmod-usb-hid - 3.10.4-1
kmod-usb-serial - 3.10.4-1
kmod-usb-serial-cp210x - 3.10.4-1
kmod-usb-storage - 3.10.4-1
kmod-usb2 - 3.10.4-1
kmod-video-core - 3.10.4-1
kmod-video-uvc - 3.10.4-1
kmod-video-videobuf2 - 3.10.4-1
libblkid - 2.21.2-2
libblobmsg-json - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
libc - 0.9.33.2-1
libexpat - 2.0.1-1
libext2fs - 1.42.4-1
libfuse - 2.9.0-2
libgcc - 4.6-linaro-1
libid3tag - 0.15.1b-3
libip4tc - 1.4.19.1-2
libip6tc - 1.4.19.1-2
libiwinfo - 46
libiwinfo-lua - 46
libjpeg - 6b-1
libjson-c - 0.11-2
libjson-script - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
liblua - 5.1.5-1
libmad - 0.15.1b-3
libneon - 0.29.6-2
libnl-tiny - 0.1-3
libopenssl - 1.0.1e-2
libpthread - 0.9.33.2-1
libubox - 2013-08-01-04f194aa8a04926fe7f2e42bbf9ba6c62d49339e
libubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
libubus-lua - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
libuci - 2013-06-11.1-1
libuci-lua - 2013-06-11.1-1
libuuid - 2.21.2-2
libxtables - 1.4.19.1-2
lua - 5.1.5-1
luci - svn-r9933-1
luci-app-firewall - svn-r9933-1
luci-i18n-english - svn-r9933-1
luci-i18n-russian - svn-r9933-1
luci-lib-core - svn-r9933-1
luci-lib-ipkg - svn-r9933-1
luci-lib-nixio - svn-r9933-1
luci-lib-sys - svn-r9933-1
luci-lib-web - svn-r9933-1
luci-mod-admin-core - svn-r9933-1
luci-mod-admin-full - svn-r9933-1
luci-proto-core - svn-r9933-1
luci-proto-ppp - svn-r9933-1
luci-proto-relay - svn-r9933-1
luci-sgi-cgi - svn-r9933-1
luci-theme-base - svn-r9933-1
luci-theme-bootstrap - svn-r9933-1
luci-theme-openwrt - svn-r9933-1
madplay - 0.15.2b-3
mjpg-streamer - r181-1
mtd - 20
netifd - 2013-07-16-2674941b06c1ec67f1aff1bff9212e1372106641
opkg - 618-3
ppp - 2.4.5-10
ppp-mod-pptp - 2.4.5-10
procd - 2013-08-16-85a5ce27f5f02e4ddab6916d69ba7f7375d289d4-1
relayd - 2011-10-24-4e8f1fa4ca2b176500362843a9e57ea5abd4b7a3
resolveip - 2
ssmtp - 2.64-4
uboot-envtools - 2013.07-rc1-2
ubox - 2013-08-16.1-5290ec879aa4d9f4192df00aad4434b0f0afa872
ubus - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
ubusd - 2013-08-08-b20a8a01c7faea5bcc9d34d10dcf7736589021b8
uci - 2013-06-11.1-1
uhttpd - 2013-07-31-fae8886f8aa5d996c8de607abea8b677216549b5
uhttpd-mod-ubus - 2013-07-31-fae8886f8aa5d996c8de607abea8b677216549b5
wpad-mini - 20130807-1
zlib - 1.2.8-1
skyvlad вне форума   Ответить с цитированием
Старый 30.03.2014, 18:47   #19
paulerr
Senior Member
 
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1152
paulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond reputepaulerr has a reputation beyond repute
По умолчанию Re: VPN и OpenWRT

У вас клиент поднимается? А что пишется в логах?
paulerr вне форума   Ответить с цитированием
Старый 31.03.2014, 19:04   #20
skyvlad
Junior Member
 
Регистрация: 21.07.2013
Сообщений: 19
Вес репутации: 0
skyvlad is an unknown quantity at this point
По умолчанию Re: VPN и OpenWRT

Вроде вот это кусок
Код:
Mon Mar 31 18:58:33 2014 daemon.info sysinit: - init complete -
Mon Mar 31 18:58:33 2014 daemon.info pppd[28029]: Plugin pptp.so loaded.
Mon Mar 31 18:58:33 2014 daemon.info pppd[28029]: PPTP plugin version 1.00
Mon Mar 31 18:58:33 2014 daemon.error pppd[28029]: pppd 2.4.5 started by root, uid 0
Mon Mar 31 18:58:36 2014 daemon.info pppd[28029]: Using interface pptp-vpn
Mon Mar 31 18:58:36 2014 daemon.error pppd[28029]: Connect: pptp-vpn <--> pptp (vpn.lan2lan.ru)
Mon Mar 31 18:58:40 2014 daemon.info pppd[28029]: CHAP authentication succeeded
Mon Mar 31 18:58:40 2014 daemon.error pppd[28029]: CHAP authentication succeeded
Mon Mar 31 18:58:42 2014 daemon.error pppd[28029]: local  IP address 192.168.99.1
Mon Mar 31 18:58:42 2014 daemon.error pppd[28029]: remote IP address 46.38.52.90
Mon Mar 31 18:58:42 2014 daemon.error netifd: Interface 'vpn' is now up
Mon Mar 31 18:58:42 2014 authpriv.error firewall: Reloading firewall due to ifup of vpn (pptp-vpn)
Mon Mar 31 18:58:54 2014 daemon.info pppd[28029]: System time change detected.
Но для меня блин пока очень-очень непонятно.
skyvlad вне форума   Ответить с цитированием
Ответ


Здесь присутствуют: 4 (пользователей: 0 , гостей: 4)
 
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Текущее время: 12:03. Часовой пояс GMT +3.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd. Перевод: zCarot
Яндекс.Метрика