Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # may/04/2015 17:36:55 by RouterOS 6.28
- # software id = 2N2X-1RMX
- #
- /interface bridge
- add name=bridge1 protocol-mode=stp
- /interface ethernet
- set [ find default-name=ether1 ] name=ether1-gateway
- /interface vlan
- add interface=ether1-gateway l2mtu=1594 name=vlan3 vlan-id=3
- add interface=ether1-gateway l2mtu=1594 name=vlan6 vlan-id=6
- /interface pppoe-client
- add add-default-route=yes allow=pap,chap disabled=no interface=vlan6 max-mru=\
- 1492 max-mtu=1492 name=pppoe-out1 password=adslppp use-peer-dns=yes user=\
- adslppp@telefonicanetpa
- /ip pool
- add name=dhcp ranges=192.168.1.201-192.168.1.249
- add name=vpn ranges=192.168.3.10-192.168.3.20
- /ip dhcp-server
- add address-pool=dhcp disabled=no interface=bridge1 name=dhcp1
- /port
- set 0 name=serial0
- set 1 name=serial1
- /ppp profile
- set 1 dns-server=192.168.3.250 local-address=192.168.3.250 remote-address=vpn
- /queue type
- add kind=pcq name=pcq-up pcq-classifier=src-address
- add kind=pcq name=pcq-down pcq-classifier=dst-address
- /queue simple
- add max-limit=3M/30M name=Aaron queue=pcq-up/pcq-down target=192.168.1.242/32 \
- total-queue=default
- add max-limit=2M/50M name=SERVIDOR queue=pcq-up/pcq-down target=\
- 192.168.1.247/32 total-queue=default
- /interface bridge port
- add bridge=bridge1 interface=ether2
- add bridge=bridge1 interface=ether3
- add bridge=bridge1 interface=ether4
- add bridge=bridge1 interface=ether5
- add bridge=bridge1 interface=ether6
- add bridge=bridge1 interface=ether7
- add bridge=bridge1 interface=ether8
- /interface pptp-server server
- set authentication=mschap2 enabled=yes
- /ip address
- add address=192.168.1.1/24 interface=bridge1 network=192.168.1.0
- add address=192.168.100.10/24 interface=ether1-gateway network=192.168.100.0
- /ip dhcp-client
- add add-default-route=no dhcp-options=hostname,clientid disabled=no \
- interface=vlan3 use-peer-ntp=no
- /ip dhcp-server lease
- add address=192.168.1.247 client-id=1:0:e0:81:b1:56:a mac-address=\
- 00:E0:81:B1:56:0A server=dhcp1
- add address=192.168.1.241 client-id=1:54:4:a6:c5:90:b0 mac-address=\
- 54:04:A6:C5:90:B0 server=dhcp1
- add address=192.168.1.242 client-id=1:0:12:79:5d:aa:d9 mac-address=\
- 00:12:79:5D:AA:D9 server=dhcp1
- /ip dhcp-server network
- add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1 \
- netmask=24
- /ip dns
- set allow-remote-requests=yes
- /ip dns static
- add address=192.168.1.1 name=router
- /ip firewall filter
- add chain=input comment="default configuration" protocol=icmp
- add chain=input comment="default configuration" connection-state=established
- add chain=input comment="default configuration" connection-state=related
- add chain=input disabled=yes dst-port=23,80 in-interface=pppoe-out1 protocol=\
- tcp
- add chain=input dst-port=8291 in-interface=pppoe-out1 protocol=tcp
- add chain=input dst-port=1723 in-interface=pppoe-out1 protocol=tcp
- add action=drop chain=input comment="default configuration" in-interface=\
- pppoe-out1
- add chain=forward comment="default configuration" connection-state=\
- established
- add chain=forward comment="default configuration" connection-state=related
- add action=drop chain=forward comment="default configuration" \
- connection-state=invalid
- /ip firewall mangle
- add action=set-priority chain=postrouting new-priority=4 out-interface=vlan3
- add action=set-priority chain=postrouting new-priority=1 out-interface=\
- pppoe-out1
- /ip firewall nat
- add action=masquerade chain=srcnat comment="default configuration" \
- out-interface=pppoe-out1
- add action=masquerade chain=srcnat comment="default configuration" \
- out-interface=ether1-gateway
- add action=masquerade chain=srcnat comment="default configuration" \
- out-interface=vlan3
- add action=dst-nat chain=dstnat disabled=yes dst-port=80 in-interface=\
- pppoe-out1 protocol=tcp to-addresses=192.168.1.125
- add action=dst-nat chain=dstnat disabled=yes dst-port=21 in-interface=\
- pppoe-out1 protocol=tcp to-addresses=192.168.1.125
- /ip route
- add distance=255 gateway=255.255.255.255
- /ip upnp
- set enabled=yes
- /ip upnp interfaces
- add interface=bridge1 type=internal
- add interface=pppoe-out1 type=external
- /romon port
- add disabled=no
- /routing rip interface
- add interface=vlan3 passive=yes receive=v2
- /routing rip network
- add network=10.0.0.0/8
- /system clock
- set time-zone-name=Europe/Madrid
- /system ntp client
- set enabled=yes primary-ntp=163.117.202.33 secondary-ntp=89.248.104.162
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement