UlricE / pen

Pen
Other
250 stars 41 forks source link

How to perform DSR on windows #20

Open jimski777 opened 8 years ago

jimski777 commented 8 years ago

How do you perform direct server return (DSR) on windows. The Pen's manual specifies this for Linux: pen -df -O “acl 1 permit 192.168.2.11” -O “tarpit_acl 1” -O “dsr_if eth1” 192.168.2.10:80 192.168.2.2 192.168.2.3 However the “-O” option is not available on windows as there is no epoll. Also Widnows don’t use interface names sach as “eth0”. So how to use it on Windows?

UlricE commented 8 years ago

DSR requires raw network access. Windows doesn't have any of the raw networking APIs that Pen supports (raw sockets on Linux, Netmap on FreeBSD). So for the time being, DSR only works on Linux and FreeBSD.

UlricE commented 8 years ago

Clarification: there is a Windows version of Netmap, but Pen so far only supports Netmap on FreeBSD.

jimski777 commented 8 years ago

Thank you Ulric. If at some point you decide to implement DSR on windows then Pen will become the first load balancer in the world that is capable of doing DSR on windows.