can pcc run as a load balancing server?

I have one internet connection,two intranet servers.

I know that PCC can run for two internet connections,

My question is how to make pcc work as a load balancing server???

the result like this:
XXX.XXX.XXX:80->192.168.1.2:80
XXX.XXX.XXX:80->192.168.1.3:80

thx!

you can probably just setup 2 dst-nat rules, with the first one using a 50/50. just a thought.

add action=dst-nat chain=dstnat comment=“” disabled=no dst-address=1.2.3.4
dst-port=80 protocol=tcp random=50 to-addresses=192.168.1.2
add action=dst-nat chain=dstnat comment=“” disabled=no dst-address=1.2.3.4
dst-port=80 protocol=tcp to-addresses=192.168.1.3

the second rule doesnt have random so it catches any remaining.

or use ‘per-connection-classifier’ instead of ‘random’: it will make results more predictable

thanks changeip,

your configuration is only a dstnat way! not the safest way, i need pcc feature, which know servers in intranet work fine or not!

not only split traffic ,but also implement redundancy function

Could you check my example?

the result l want is:
192.168.200.1:80->192.168.1.2:80
192.168.200.1:80->192.168.1.3:80

what i did:

add action=dst-nat chain=dstnat comment=“” disabled=no dst-address=192.168.200.1
dst-port=80 protocol=tcp per-connection-classifier=dst-address:2/0
to-addresses=192.168.1.2
add action=dst-nat chain=dstnat comment=“” disabled=no dst-address=192.168.200.1
dst-port=80 protocol=tcp per-connection-classifier=dst-address:2/1 to-addresses=192.168.1.3

Is that work fine?

great thx!

you use ‘dst-address’ classifier with fixed dst-address=192.168.200.1 - only one of rules will catch packets. use ‘src-address’ classifier.

will ‘NetWatch’ (pinging) be enough for failover checking?