Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /interface pppoe-client
- add add-default-route=yes comment="1st landline" disabled=no interface=wan1 name=pppoe-out1 password=something user=somthing
- /ip address
- add address=172.16.0.1/16 interface=local network=172.16.0.0
- add address=192.168.1.2/24 interface=wan1 network=192.168.1.0
- add address=1.1.1.2/29 interface=pppoe-out1 network=1.1.2.2
- add address=1.1.1.3/29 interface=pppoe-out1 network=1.1.2.2
- /ip firewall address-list
- add address=172.16.0.1-172.16.0.75 list=internet_allowed
- /ip firewall nat
- add action=dst-nat chain=dstnat comment="route web server1" disabled=no dst-address=1.1.1.2 dst-address-type=local dst-port=80 in-interface=pppoe-out1 protocol=tcp to-addresses=172.16.0.5 to-ports=80
- add action=dst-nat chain=dstnat comment="route web server2" disabled=no dst-address=1.1.1.3 dst-address-type=local dst-port=80 in-interface=pppoe-out1 protocol=tcp to-addresses=172.16.0.6 to-ports=80
- add action=masquerade chain=srcnat comment="allow inter communication (lan to lan)" dst-address-list=internet_allowed src-address-list=internet_allowed
- add action=src-nat chain=srcnat comment="route server1 traffic via 1.1.1.2" src-address=172.16.0.5 to-addresses=1.1.1.2
- add action=src-nat chain=srcnat comment="route server1 traffic via 1.1.1.2" src-address=172.16.0.6 to-addresses=1.1.1.3
- add action=masquerade chain=srcnat comment="allow internat access" out-interface=pppoe-out1 src-address-list=internet_allowed
- /interface pppoe-server server
- add authentication=pap default-profile=public_ips_wan1 disabled=no interface=local one-session-per-host=yes service-name=isp_of_wan1_ips
- /ppp profile
- add dns-server=101.102.103.104,101.102.103.105 local-address=1.2.3.4 name=public_ips_wan1 remote-address=public_pool
- /ip pool
- add name=public_pool ranges=1.1.1.3,1.1.1.4
- Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
- # DST-ADDRESS PREF-SRC GATEWAY DISTANCE
- 0 ADS 0.0.0.0/0 pppoe-out1 0
- 01 ADC 11.12.13.14/32 1.2.3.4 pppoe-out1 0
- 02 ADC 172.16.0.0/16 172.16.0.1 local 0
- 03 ADC 192.168.1.0/24 192.168.1.2 wan1 0
- 04 ADC 1.1.2.2/29 1.1.1.2 pppoe-out1 0
- 05 ADC 1.1.2.2/29 1.1.1.3 pppoe-out1 0
- 06 ADC 1.1.1.3/32 1.2.3.4 <pppoe-01> 0
- 07 ADC 1.1.1.4/32 1.2.3.4 <pppoe-05> 0
Add Comment
Please, Sign In to add comment