gfx wrote:
您用複雜的方式處裡簡...(恕刪)
您好!!
想請問題正確設定方式是怎麼設定的?
主要需求單純就是希望三台電腦可以透過不同ip開設服務出去
感謝您~
kuanhsien wrote:我把設定匯出來,您修改後匯入即可
您好!!想請問題正確...(恕刪)
/ip firewall mangle
add action=mark-connection chain=prerouting in-interface=pppoe-out1 \
new-connection-mark=pppoe1_conn
add action=mark-connection chain=prerouting in-interface=pppoe-out2 \
new-connection-mark=pppoe2_conn
add action=mark-connection chain=prerouting in-interface=pppoe-out3 \
new-connection-mark=pppoe3_conn
add action=mark-routing chain=output comment="PPPoE\\A5X\\A4f" connection-mark=\
pppoe1_conn new-routing-mark=to_pppoe1 passthrough=no
add action=mark-routing chain=output connection-mark=pppoe2_conn \
new-routing-mark=to_pppoe2 passthrough=no
add action=mark-routing chain=output connection-mark=pppoe3_conn \
new-routing-mark=to_pppoe3 passthrough=no
add action=mark-routing chain=prerouting comment=DVR connection-mark=pppoe1_conn \
new-routing-mark=to_pppoe1 passthrough=no src-address=192.168.1.57
add action=mark-routing chain=prerouting connection-mark=pppoe2_conn \
new-routing-mark=to_pppoe2 passthrough=no src-address=192.168.1.58
add action=mark-routing chain=prerouting comment=IPCAM \
connection-mark=pppoe3_conn new-routing-mark=to_pppoe3 passthrough=no \
src-address=192.168.1.50
/ip firewall nat
add action=dst-nat chain=dstnat comment=DVR in-interface=pppoe-out1 \
to-addresses=192.168.1.57
add action=dst-nat chain=dstnat interface=pppoe-out2 to-addresses=\
192.168.1.58
add action=dst-nat chain=dstnat comment=IPCAM in-interface=\
pppoe-out3 to-addresses=192.168.1.50
/ip route
add distance=1 gateway=pppoe-out1 routing-mark=to_pppoe1
add distance=1 gateway=pppoe-out2 routing-mark=to_pppoe2
add distance=1 gateway=pppoe-out3 routing-mark=to_pppoe3
gfx wrote:
在命令視窗(New ...(恕刪)
kuanhsien wrote:先讓您的系統能上網為優先!
您好!!
這是我目前...(恕刪)
/interface pppoe-client set [find name="pppoe-out1"] user-peer-dns=no
/interface pppoe-client set [find name="pppoe-out2"] user-peer-dns=no
/interface pppoe-client set [find name="pppoe-out3"] user-peer-dns=no
/ip firewall nat remobe [find action="masquerade"]
/ip firewall nat add action=masquerade chain=srcnat out-interface=pppoe-out1
/ip firewall nat add action=masquerade chain=srcnat out-interface=pppoe-out2
/ip firewall nat add action=masquerade chain=srcnat out-interface=pppoe-out3
/ip firewall mangle add chain=prerouting \
src-address=192.168.1.0/24 dst-address=192.168.1.0/24
/ip firewall mangle set [find in-interface="pppoe-out3"] passthrough=yes
/ip firewall mangle add action=mark-connection chain=prerouting \
in-interface=pppoe-out2 new-connection-mark=pppoe2_conn
/ip firewall mangle add action=mark-routing chain=output \
connection-mark=pppoe2_conn new-routing-mark=to_pppoe2 passthrough=no
/ip firewall mangle add action=mark-connection chain=prerouting \
in-interface=pppoe-out1 new-connection-mark=pppoe1_conn
/ip firewall mangle add action=mark-routing chain=output \
connection-mark=pppoe1_conn new-routing-mark=to_pppoe1 passthrough=no
/ip firewall mangle add add action=mark-routing chain=prerouting \
new-routing-mark=to_pppoe1 src-address=192.168.1.0/24
/ip route add distance=1 gateway=pppoe-out1 routing-mark=to_pppoe1
/ip route add distance=1 gateway=pppoe-out2 routing-mark=to_pppoe2