jchcc wrote:修正:
不好意思請教一下小...(恕刪)
/interface pppoe-client
add comment="PPPOE\\BC\\B7\\B1\\B5\\B3]\\A9w" disabled=no interface=ether1-wan \
max-mru=1480 max-mtu=1480 name=pppoe-out-ip password=password \
use-peer-dns=yes user=account@ip.hinet.net
add add-default-route=yes comment="PPPOE\\BC\\B7\\B1\\B5\\B3]\\A9w" disabled=no \
interface=ether1-wan max-mru=1480 max-mtu=1480 name=pppoe-out1 password=\
password use-peer-dns=yes user=account@hinet.net
/ip firewall nat
add action=masquerade chain=srcnat comment="NAT Loopback" dst-address=\
192.168.88.236 src-address=192.168.88.0/24
add action=dst-nat chain=dstnat dst-address=122.117.116.73 dst-port=5000-5001 \
protocol=tcp to-addresses=192.168.88.236
add action=masquerade chain=srcnat out-interface=pppoe-out-ip
add action=masquerade chain=srcnat out-interface=pppoe-out1
/ip firewall mangle
add action=mark-connection chain=prerouting in-interface=pppoe-out-ip \
new-connection-mark=pppoe-out-ip_conn
add action=mark-routing chain=output connection-mark=pppoe-out-ip_conn \
new-routing-mark=NAS passthrough=no
add action=mark-routing chain=prerouting connection-mark=pppoe-out-ip_conn \
new-routing-mark=NAS src-address=192.168.88.236 passthrough=no
add action=mark-routing chain=prerouting comment=NAS new-routing-mark=NAS \
passthrough=no src-address=192.168.88.236
/ip route
add distance=1 gateway=pppoe-out-ip routing-mark=NAS