Hi !
Has anybody successfully integrated an secureix - trial account in openwrt ?
What i have now :
Siemens SE505V2 with 16MB RAM and Openwrt 0.9
A Connected USB-HSDPA Modem (ppp0)
A pseudo-Static VPN to my home Place (ppp1) (routed bi-dierectional)
I want to route all Traffic to 66.0.0.0/255.0.0.0 over ppp2 (secureix)
I already have this ppp2-Interface up&Running.
Also routing seems to be fine, but i dont know how
to enable NAT for this interface.
Here you can see what i have done :
root@UMTSGateway:~# cd /etc
root@UMTSGateway:/etc# cd ppp
root@UMTSGateway:/etc/ppp# cat options.pptp
lock
noauth
nobsdcomp
nodeflate
idle 0
defaultroute
maxfail 0
persist
root@UMTSGateway:/etc/ppp# cd peers
root@UMTSGateway:/etc/ppp/peers# cat secureix
########################################
########################################
pty "pptp vpn.secureix.com --nolaunchpppd"
#pty "pptp 66.150.105.18 --nolaunchpppd"
mppe required,stateless
name dkfasd@secureix.com
remotename secureix
file /etc/ppp/options.pptp
root@UMTSGateway:/etc/ppp/peers# pppd nodetach debug call secureix &
root@UMTSGateway:/etc/ppp/peers# using channel 4
Using interface ppp2
Connect: ppp2 <--> /dev/pts/3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x21558ff5>]
rcvd [LCP ConfReq id=0x1 <mru 1408> <asyncmap 0x0> <auth chap MS-v2> <magic 0xc3 0dc3d4> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x21558ff5>]
rcvd [LCP ConfReq id=0x2 <mru 1408> <asyncmap 0x0> <auth chap MS-v2> <magic 0xc3 0dc3d4>]
sent [LCP ConfAck id=0x2 <mru 1408> <asyncmap 0x0> <auth chap MS-v2> <magic 0xc3 0dc3d4>]
rcvd [CHAP Challenge id=0x13 <67605e45251437fbb1fffa29c44089ac>, name = "pptpd"]
Warning - secret file /etc/ppp/chap-secrets has world and/or group access
sent [CHAP Response id=0x13 <84a057b29dfa28f57574533b4d55a4e70000000000000000b9a 8ce6e7973b12b068cb38141e0843038ecd8968587f72000>, name = "dkfasd@secureix.com"]
rcvd [CHAP Success id=0x13 "S=A30D5453448F1355DE4ECD0CB1040B85F1F75D4C M=Access granted"]
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe +H +M +S +L -D +C>]
rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfNak id=0x1 <mppe +H -M +S -L -D -C>]
sent [CCP ConfReq id=0x2 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfAck id=0x2 <mppe +H -M +S -L -D -C>]
MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 66.150.105.9>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 66.150.105.9>]
rcvd [IPCP ConfNak id=0x1 <addr 10.2.0.7>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 10.2.0.7>]
rcvd [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 10.2.0.7>]
not replacing default route to ppp0 [0.0.0.0]
local IP address 10.2.0.7
remote IP address 66.150.105.9
Script /etc/ppp/ip-up started (pid 807)
Script /etc/ppp/ip-up finished (pid 807), status = 0x0
root@UMTSGateway:/etc/ppp/peers# ifconfig
br0 Link encap:Ethernet HWaddr 00:90:96:00:00:02
inet addr:192.168.15.2 Bcast:192.168.15.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13943 errors:0 dropped:0 overruns:0 frame:0
TX packets:23494 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:831988 (812.4 KiB) TX bytes:26287477 (25.0 MiB)
eth0 Link encap:Ethernet HWaddr 00:90:96:FF:00:00
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1736 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:126171 (123.2 KiB)
Interrupt:5
eth1 Link encap:Ethernet HWaddr 00:90:96:00:00:02
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:13935 errors:0 dropped:0 overruns:0 frame:24993
TX packets:25212 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1026566 (1002.5 KiB) TX bytes:26790447 (25.5 MiB)
Interrupt:4 Base address:0x1000
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:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3853 (3.7 KiB) TX bytes:3853 (3.7 KiB)
ppp0 Link encap:Point-Point Protocol
inet addr:91.141.35.57 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:23699 errors:0 dropped:0 overruns:0 frame:0
TX packets:14007 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:26012785 (24.8 MiB) TX bytes:852477 (832.4 KiB)
ppp1 Link encap:Point-Point Protocol
inet addr:192.168.5.8 P-t-P:192.168.5.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:1081 errors:0 dropped:0 overruns:0 frame:0
TX packets:729 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:869524 (849.1 KiB) TX bytes:64322 (62.8 KiB)
ppp2 Link encap:Point-Point Protocol
inet addr:10.2.0.7 P-t-P:66.150.105.9 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1408 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:8226 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:72 (72.0 B) TX bytes:3331878 (3.1 MiB)
vlan0 Link encap:Ethernet HWaddr 00:90:96:FF:00:00
UP BROADCAST RUNNING ALLMULTI MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1731 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:113766 (111.0 KiB)
root@UMTSGateway:/etc/ppp/peers# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.1 * 255.255.255.255 UH 0 0 0 ppp1
10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0
66.150.105.9 * 255.255.255.255 UH 0 0 0 ppp2
192.168.15.0 * 255.255.255.0 U 0 0 0 br0
192.168.0.0 * 255.255.0.0 U 0 0 0 ppp1
default * 0.0.0.0 U 0 0 0 ppp0
root@UMTSGateway:/etc/ppp/peers# route delete 66.150.105.9
root@UMTSGateway:/etc/ppp/peers# route add 66.150.105.9 ppp0
root@UMTSGateway:/etc/ppp/peers# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.5.1 * 255.255.255.255 UH 0 0 0 ppp1
10.64.64.64 * 255.255.255.255 UH 0 0 0 ppp0
66.150.105.9 * 255.255.255.255 UH 0 0 0 ppp0
192.168.15.0 * 255.255.255.0 U 0 0 0 br0
192.168.0.0 * 255.255.0.0 U 0 0 0 ppp1
default * 0.0.0.0 U 0 0 0 ppp0
root@UMTSGateway:/etc/ppp/peers# route add -net 66.0.0.0 netmask 255.0.0.0 dev ppp2