Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /interface bridge
- add name=LAN protocol-mode=none
- /interface ethernet
- set [ find default-name=ether1 ] name=ether1_WAN
- set [ find default-name=ether2 ] name=ether2_Laptop
- set [ find default-name=ether5 ] name=ether5_WIFI
- /interface gre
- add !keepalive local-address=172.16.1.2 mtu=1382 name=GRE_Site_to_Site \
- remote-address=172.16.1.1
- /ip ipsec mode-config
- add name=GRE responder=no
- /ip ipsec policy group
- add name=GRE
- /ip ipsec profile
- set [ find default=yes ] enc-algorithm=aes-256,aes-128
- add enc-algorithm=aes-256,aes-128 name=IKE2
- /ip ipsec peer
- add address=trackboy.ddns.net exchange-mode=ike2 name=GRE_Site_to_Site \
- profile=IKE2
- /ip ipsec proposal
- set [ find default=yes ] auth-algorithms=sha256,sha1 enc-algorithms=\
- aes-256-cbc,aes-128-cbc pfs-group=none
- add auth-algorithms=sha256,sha1 enc-algorithms=aes-256-cbc,aes-128-cbc name=\
- IKE2 pfs-group=none
- /ip pool
- add name=WIFI ranges=10.10.3.100-10.10.3.200
- /ip dhcp-server
- add add-arp=yes address-pool=WIFI disabled=no interface=ether5_WIFI name=WIFI
- /interface bridge port
- add bridge=LAN interface=ether3
- add bridge=LAN interface=ether4
- /interface l2tp-server server
- set authentication=chap default-profile=default keepalive-timeout=disabled
- /ip address
- add address=10.10.1.1/24 interface=ether2_Laptop network=10.10.1.0
- add address=10.10.2.1/24 interface=LAN network=10.10.2.0
- add address=10.10.3.1/24 interface=ether5_WIFI network=10.10.3.0
- /ip dhcp-client
- add dhcp-options=hostname,clientid disabled=no interface=ether1_WAN \
- use-peer-dns=no use-peer-ntp=no
- /ip dhcp-server network
- add address=10.10.3.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.10.3.1 \
- netmask=24
- /ip dns
- set servers=8.8.8.8,8.8.4.4
- /ip firewall filter
- add action=accept chain=input dst-port=2250,8291 protocol=tcp
- add action=accept chain=input protocol=icmp
- add action=accept chain=input dst-port=500,1701,4500 protocol=udp
- add action=accept chain=input protocol=ipsec-esp
- add action=accept chain=input protocol=gre
- add action=accept chain=input connection-state=established,related
- add action=drop chain=input connection-state=invalid
- add action=drop chain=input
- add action=accept chain=forward connection-state=established,related
- add action=drop chain=forward connection-state=invalid
- /ip firewall nat
- add action=masquerade chain=srcnat out-interface=ether1_Naracom
- /ip ipsec identity
- add generate-policy=port-strict mode-config=GRE peer=GRE_Site_to_Site \
- policy-template-group=GRE secret=Laci19881124
- /ip ipsec policy
- add dst-address=172.16.1.1/32 group=GRE proposal=IKE2 src-address=\
- 172.16.1.2/32 template=yes
- /ip route
- add distance=1 dst-address=10.10.100.0/24 gateway=ether1_Naracom
- /ip service
- set telnet disabled=yes
- set ftp disabled=yes
- set www disabled=yes
- set ssh address=10.10.1.0/24 port=2250
- set api disabled=yes
- set api-ssl disabled=yes
- /system clock
- set time-zone-autodetect=no time-zone-name=Europe/Budapest
- /system identity
- set name=750GL
- /system logging
- add topics=l2tp
- add topics=ipsec
- add topics=ssh
Advertisement
Add Comment
Please, Sign In to add comment