unable to forward wifibox:22 to host:22

I am using wifibox so I can extract better wifi performance out of my wifi card. It works well, BUT, I can no longer SSH directly to the box. I read the docs:

man wifibox
man wifibox-guest

And, I see that I need to configure appliance/forwarding.conf, so this is my conf:

/usr/local/etc/wifibox/appliance/forwarding.conf:

TCP-LISTEN:22 TCP:10.0.0.2:22

The wifibox0 has an address of 10.0.0.2 and is a network bridge, so is that the address I'd want to put in the conf? I assume that TCP-LISTEN:22 opens up a TCP socket and accepts traffic on port 22 regardless of the IP.
 
I see, that makes sense, you can do port forwarding there.

But, should it not be possible to accomplish the same thing with socat?
 
I think that this is not possible directly. The fact is that wifibox has 2 interfaces, wlan0, and eth0. wlan0 is connected to your WiFi network and receives an IP address, for example 192.168.0.101. eth0 - has 10.0.0.1 . You have 2 interfaces on the host, tap0 and wifibox0. wifibox0 has the address 10.0.0.2, and tap0, as I understand it, is bound to 10.0.0.1. In this case, wifibox works as a classic router. If wifibox were configured to work as a bridge, then wifibox0 would receive an IP address directly. And in our case, the host system knows that the network 192.168.0.0/24 exists, and is accessible through node 10.0.0.1. Therefore, on the wifibox side, you need to enable port forwarding in iptables. With the iwlwifi driver in FreeBSD I had a connection speed of 1Mb, now it's 12MB. This is the speed of my connection to the ISP. If you are interested, I will provide a link to the article by the developer of this port.
 
Back
Top