I have 2 ISP provider going to the same router
ADDRESS NETWORK INTERFACE
0 192.168.0.1/24 192.168.0.0 LAN0-0
1 192.168.2.1/24 192.168.2.0 wlan0
2 192.168.1.1/24 192.168.1.0 LAN1-0
3 192.168.3.1/24 192.168.3.0 wlan1
4 D 2yy.2yy.1yy.1yy/32 2yy.2yy.1yy.1yy DSL1 (STATIC IP)
5 D 6x.1xx.1xx.7x/32 2xx.2xx.1xx.1xx DSL0
Traffic from 192.168.0.1/24 and 192.168.2.1/24 (bridge0) will leave from DSL0
Traffic from 192.168.1.1/24 and 192.168.3.1/24 (bridge1) will leave from DSL1
98 ;;; toLAN0
chain=prerouting action=mark-routing new-routing-mark=toLAN0
passthrough=no dst-address=192.168.0.0/24
99 ;;; toLAN1
chain=prerouting action=mark-routing new-routing-mark=toLAN1
passthrough=no dst-address=192.168.1.0/24
100 ;;; toDSL0
chain=prerouting action=mark-routing new-routing-mark=toDSL0
passthrough=no src-address=192.168.0.0/24
101 ;;; toDSL1
chain=prerouting action=mark-routing new-routing-mark=toDSL1
passthrough=no src-address=192.168.1.0/24
DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 DSL0 1 (toDSL0)
1 A S 0.0.0.0/0 bridge0 1 (toLAN0)
2 A S 0.0.0.0/0 bridge1 1 (toLAN1)
3 A S 0.0.0.0/0 DSL1 1 (toDSL1)
4 A S ;;; default route for router
0.0.0.0/0 DSL0 1
5 ADC 192.168.0.0/24 192.168.0.1 bridge0 0
6 ADC 192.168.1.0/24 192.168.1.1 bridge1 0
7 ADC 192.168.2.0/24 192.168.2.1 bridge0 0
8 ADC 192.168.3.0/24 192.168.3.1 bridge1 0
10 ADC 2yy.2yy.1yy.1yy/32 2yy.2yy.1yy.1yy DSL1 0
11 ADC 2xx.2xx.1xx.1xx/32 6x.1xx.1xx.7x DSL0 0
I have a webserver on 192.168.1.123.
External client can see my website throught the static ip provided by my ISP
18 chain=forward action=accept protocol=tcp dst-address=192.168.1.123 in-interface=DSL1 dst-port=80
19 chain=forward action=accept protocol=udp dst-address=192.168.1.123 in-interface=DSL1 dst-port=80
4 chain=srcnat action=masquerade src-address=192.168.0.0/24 out-interface=DSL0
5 chain=srcnat action=masquerade src-address=192.168.1.0/24 out-interface=DSL1
9 chain=dstnat action=dst-nat to-addresses=192.168.1.123 to-ports=80 protocol=tcp in-interface=DSL1 dst-port=80
10 chain=dstnat action=dst-nat to-addresses=192.168.1.123 to-ports=80 protocol=udp in-interface=DSL1 dst-port=80
I can see my website using my internal ip 192.168.1.123 (client on 192.168.0.0/24)
I would like to see my website using the STATIC IP address provided by my ISP with clients on 192.168.0.0/24
Thanks
TONY