PF How to do round-robin connection on pf?

  • Thread starter Deleted member 55181
  • Start date
D

Deleted member 55181

Guest
Have two proxy bind at 127.0.0.1:9050 and 127.0.0.2:9050, I want to roun-robin'ed it for LAN network in pf. I was tried some ways but any one don't working.


Code:
ext_if="em0"
int_if="ue0"

#set skip on lo
#nat on $ext_if inet from ! ($ext_if) to any -> ($ext_if)

rdr pass on $int_if proto tcp from any to any port 80 -> {(ue0 127.0.0.1) (ue0 127.0.0.2)} port 9050 round-robin
rdr pass on $int_if proto tcp from any to any port 443 -> {(ue0 127.0.0.1) (ue0 127.0.0.2)} port 9050 round-robin

Code:
root@komputer:~ # service pf restart
/etc/rc.d/pf: DEBUG: checkyesno: pf_enable is set to YES.
/etc/rc.d/pf: DEBUG: checkyesno: pf_enable is set to YES.
/etc/rc.d/pf: DEBUG: run_rc_command: doit: pf_stop
Disabling pf.
/etc/rc.d/pf: DEBUG: checkyesno: pf_enable is set to YES.
/etc/rc.d/pf: DEBUG: load_kld: pf kernel module already loaded.
/etc/rc.d/pf: DEBUG: run_rc_command: doit: pf_start
Enabling pf/etc/pf.conf:7: syntax error
/etc/pf.conf:8: syntax error
pfctl: Syntax error in config file: pf rules not loaded
.
root@komputer:~ #
 
Back
Top