Advertisement
roman_gemini

vpn config

Mar 3rd, 2014
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. root@hp:/etc/ipfw # ifconfig
  2. em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
  3. options=42098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,VLAN_HWTSO>
  4. ether 00:23:24:1f:6f:c7
  5. inet6 fe80::223:24ff:fe1f:6fc7%em0 prefixlen 64 scopeid 0x1
  6. nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
  7. media: Ethernet autoselect
  8. status: no carrier
  9. re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
  10. options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
  11. ether 10:fe:ed:02:0a:bf
  12. inet 176.38.54.30 netmask 0xffffff00 broadcast 176.38.54.255
  13. nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
  14. media: Ethernet autoselect (1000baseT <full-duplex>)
  15. status: active
  16. ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1396
  17. inet 192.168.1.255 --> 192.168.1.200 netmask 0xffffffff
  18. inet6 fe80::223:24ff:fe1f:6fc7%ng0 prefixlen 64 scopeid 0x11
  19. nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
  20.  
  21. root@hp:/etc/ipfw # cat /usr/local/etc/mpd5/mpd.conf
  22. startup:
  23. set user admin "********" admin
  24. set console self 127.0.0.1 5005
  25. set console open
  26. set web self 127.0.0.1 5006
  27. set web open
  28. default:
  29. load vpn
  30. vpn:
  31. set ippool add poolsat 192.168.1.200 192.168.1.254
  32. create bundle template B
  33. set iface enable proxy-arp
  34. set iface idle 1800
  35. set iface enable tcpmssfix
  36. set ipcp yes vjcomp
  37. set ipcp ranges 192.168.1.255/32 ippool poolsat
  38. set ipcp dns 192.168.1.1
  39. set bundle enable compression
  40. set ccp yes mppc
  41. set mppc yes e40
  42. set mppc yes e128
  43. set mppc yes stateless
  44.  
  45. create link template L pptp
  46. set link action bundle B
  47. set link enable multilink
  48. set link yes acfcomp protocomp
  49. set link mtu 1460
  50. set link no pap chap
  51. set link enable chap
  52. set link keep-alive 10 60
  53. set pptp self 0.0.0.0
  54. set link enable incoming
  55.  
  56. root@hp:/etc/ipfw # ipfw list
  57. 00100 allow tcp from me 1723 to any keep-state
  58. 00200 allow gre from any to any
  59. 00300 allow udp from any to any
  60. 00400 divert 8668 ip from any to any via re0
  61. 65535 allow ip from any to any
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement