Re: L2TP+IPSec обрывается загрузка файлов RB4011iGS +RB4011iGS
Добавлено: 20 фев 2020, 15:21
ещё один канал сделал на 3011..
итог тот же..
[admin@MikroTik] > /export compact
# feb/18/2020 23:24:41 by RouterOS 6.45.8
# software id = 6Y1U-T9P9
#
# model = RouterBOARD 3011UiAS
# serial number = 783D0801BEED
/interface bridge
add admin-mac=CC:2D:E0:35:1B:7B auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] comment=ChudoProv speed=100Mbps
set [ find default-name=ether2 ] comment=PC speed=100Mbps
set [ find default-name=ether3 ] speed=100Mbps
set [ find default-name=ether4 ] speed=100Mbps
set [ find default-name=ether5 ] speed=100Mbps
set [ find default-name=ether6 ] speed=100Mbps
set [ find default-name=ether7 ] speed=100Mbps
set [ find default-name=ether8 ] speed=100Mbps
set [ find default-name=ether9 ] comment=Kyocera speed=100Mbps
set [ find default-name=ether10 ] speed=100Mbps
set [ find default-name=sfp1 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=p-Fa-104 password=\
2410690a use-peer-dns=yes user=AXAX
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.104.10-192.168.104.200
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/ppp profile
add change-tcp-mss=yes local-address=172.20.13.5 name=tjkp remote-address=\
172.20.13.1 use-compression=no use-encryption=yes use-mpls=yes
/interface l2tp-client
add connect-to=tjkp.nonono.me disabled=no ipsec-secret=XXX name=\
l2tp-104 password=XXX profile=tjkp use-ipsec=yes user=l2tp-104
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=ether9
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge comment=defconf interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=p-Fa-104 list=WAN
/ip address
add address=192.168.104.1/24 comment=bridge interface=ether2 network=\
192.168.104.0
/ip dhcp-client
add add-default-route=no comment=defconf dhcp-options=hostname,clientid \
interface=ether1
/ip dhcp-server lease
add address=192.168.104.200 client-id=1:0:f:35:ec:a8:38 mac-address=\
00:0F:35:EC:A8:38 server=defconf
/ip dhcp-server network
add address=192.168.104.0/24 comment=defconf gateway=192.168.104.1 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.104.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment=FTP dst-port=8221 protocol=tcp
add action=accept chain=forward comment="104 to 10" dst-address=192.168.10.0/24 \
src-address=192.168.104.0/24
add action=accept chain=input comment="accept Winbox from Internet" dst-port=\
8291 protocol=tcp
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=\
invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=\
out,none out-interface-list=WAN
add action=dst-nat chain=dstnat comment=5931 dst-port=5931 protocol=tcp \
to-addresses=192.168.10.200 to-ports=5931
/ip firewall service-port
set ftp ports=8221
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
set dccp disabled=yes
set sctp disabled=yes
/ip route
add distance=1 dst-address=192.168.10.0/24 gateway=172.20.13.1 pref-src=\
172.20.13.5
/ip service
set telnet disabled=yes
set ftp port=8221
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip ssh
set allow-none-crypto=yes forwarding-enabled=remote
/system clock
set time-zone-name=Europe/Moscow
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
[admin@MikroTik] >
итог тот же..
[admin@MikroTik] > /export compact
# feb/18/2020 23:24:41 by RouterOS 6.45.8
# software id = 6Y1U-T9P9
#
# model = RouterBOARD 3011UiAS
# serial number = 783D0801BEED
/interface bridge
add admin-mac=CC:2D:E0:35:1B:7B auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] comment=ChudoProv speed=100Mbps
set [ find default-name=ether2 ] comment=PC speed=100Mbps
set [ find default-name=ether3 ] speed=100Mbps
set [ find default-name=ether4 ] speed=100Mbps
set [ find default-name=ether5 ] speed=100Mbps
set [ find default-name=ether6 ] speed=100Mbps
set [ find default-name=ether7 ] speed=100Mbps
set [ find default-name=ether8 ] speed=100Mbps
set [ find default-name=ether9 ] comment=Kyocera speed=100Mbps
set [ find default-name=ether10 ] speed=100Mbps
set [ find default-name=sfp1 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 name=p-Fa-104 password=\
2410690a use-peer-dns=yes user=AXAX
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp ranges=192.168.104.10-192.168.104.200
/ip dhcp-server
add address-pool=dhcp disabled=no interface=bridge name=defconf
/ppp profile
add change-tcp-mss=yes local-address=172.20.13.5 name=tjkp remote-address=\
172.20.13.1 use-compression=no use-encryption=yes use-mpls=yes
/interface l2tp-client
add connect-to=tjkp.nonono.me disabled=no ipsec-secret=XXX name=\
l2tp-104 password=XXX profile=tjkp use-ipsec=yes user=l2tp-104
/interface bridge port
add bridge=bridge comment=defconf interface=ether2
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=ether9
add bridge=bridge comment=defconf interface=sfp1
add bridge=bridge comment=defconf interface=ether5
/ip neighbor discovery-settings
set discover-interface-list=LAN
/interface list member
add comment=defconf interface=bridge list=LAN
add comment=defconf interface=ether1 list=WAN
add interface=p-Fa-104 list=WAN
/ip address
add address=192.168.104.1/24 comment=bridge interface=ether2 network=\
192.168.104.0
/ip dhcp-client
add add-default-route=no comment=defconf dhcp-options=hostname,clientid \
interface=ether1
/ip dhcp-server lease
add address=192.168.104.200 client-id=1:0:f:35:ec:a8:38 mac-address=\
00:0F:35:EC:A8:38 server=defconf
/ip dhcp-server network
add address=192.168.104.0/24 comment=defconf gateway=192.168.104.1 netmask=24
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.104.1 name=router.lan
/ip firewall filter
add action=accept chain=input comment=FTP dst-port=8221 protocol=tcp
add action=accept chain=forward comment="104 to 10" dst-address=192.168.10.0/24 \
src-address=192.168.104.0/24
add action=accept chain=input comment="accept Winbox from Internet" dst-port=\
8291 protocol=tcp
add action=accept chain=input comment=\
"defconf: accept established,related,untracked" connection-state=\
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=\
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=drop chain=input comment="defconf: drop all not coming from LAN" \
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy" \
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy" \
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
connection-state=established,related
add action=accept chain=forward comment=\
"defconf: accept established,related, untracked" connection-state=\
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid" connection-state=\
invalid
add action=drop chain=forward comment=\
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
connection-state=new in-interface-list=WAN
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" ipsec-policy=\
out,none out-interface-list=WAN
add action=dst-nat chain=dstnat comment=5931 dst-port=5931 protocol=tcp \
to-addresses=192.168.10.200 to-ports=5931
/ip firewall service-port
set ftp ports=8221
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
set dccp disabled=yes
set sctp disabled=yes
/ip route
add distance=1 dst-address=192.168.10.0/24 gateway=172.20.13.1 pref-src=\
172.20.13.5
/ip service
set telnet disabled=yes
set ftp port=8221
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/ip ssh
set allow-none-crypto=yes forwarding-enabled=remote
/system clock
set time-zone-name=Europe/Moscow
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
[admin@MikroTik] >