Для начала необходимо установить pptp клиент:
# opkg install pptp
Пишем конфигурационные файлы.
# nano /etc/config/network
config interface loopback config interface lan config interface wan config interface myinet config switch config switch_vlan config 'route' config 'route' config 'route' config 'route' config 'route' config 'route'
option ifname lo
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
option ifname eth0.1
option type bridge
option proto static
option ipaddr 192.168.0.249
option netmask 255.255.255.0
option ifname eth1
option ipproto dhcp
option proto dhcp
option macaddr 00:11:00:22:11:BB
option proto pptp
option server 172.16.0.29
option username user_login
option password user_password
option name rtl8366s
option reset 1
option enable_vlan 1
option device rtl8366s
option vlan 1
option ports "0 1 2 3 5t"
option 'interface' 'wan'
option 'target' '94.25.31.0'
option 'netmask' '255.255.255.0'
option 'gateway' '10.38.0.1'
option 'interface' 'wan'
option 'target' '94.232.120.0'
option 'netmask' '255.255.248.0'
option 'gateway' '10.38.0.1'
option 'interface' 'wan'
option 'target' '94.158.112.0'
option 'netmask' '255.255.240.0'
option 'gateway' '10.38.0.1'
option 'interface' 'wan'
option 'target' '62.33.35.0'
option 'netmask' '255.255.255.0'
option 'gateway' '10.38.0.1'
option 'interface' 'wan'
option 'target' '91.192.32.0'
option 'netmask' '255.255.252.0'
option 'gateway' '10.38.0.1'
option 'interface' 'wan'
option 'target' '172.16.0.0'
option 'netmask' '255.240.0.0'
option 'gateway' '10.38.0.1'
# nano /etc/config/firewall
config 'defaults' config 'zone' config 'zone' config 'forwarding' config 'rule' #Allow ping config 'include'
option 'syn_flood' '1'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
option 'name' 'lan'
option 'input' 'ACCEPT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
option 'name' 'wan'
option 'network' 'wan myinet'
option 'input' 'REJECT'
option 'output' 'ACCEPT'
option 'forward' 'REJECT'
option 'masq' '1'
option 'mtu_fix' '1'
option 'src' 'lan'
option 'dest' 'wan'
option 'src' 'wan'
option 'proto' 'udp'
option 'dest_port' '68'
option 'target' 'ACCEPT'
option family ipv4
config rule
option src wan
option proto icmp
option icmp_type echo-request
option target ACCEPT
option 'path' '/etc/firewall.user'
No comments:
Post a Comment