/
Local Network Installation

Local Network Installation

Customers may use a physical server in their network (no Digital Ocean or AWS). This article will describe how to configure your network and routing.

Here is the simplified diagram of the scenario →

image-20250320-141726.png

cat /batm/config/network
public_ip=X.X.X.X (needs to be the real Public IP which you enter directly on the terminal)
admin_bind_ip=10.3.2.2
master_bind_ip=10.3.2.1
gate_bind_ip=10.3.1.1

 

The terminal will connect to the public IP (X.X.X.X) in port 7741 to contact the gate service and on port 7742 for admin VPN.

On the router side, you need to redirect the ports 7741 and 7742 to the local IP of your server (in our case 192.168.88.205) by using the following commands →

sudo iptables -t nat -A PREROUTING -p tcp --dport 7741 -i WANifc -j DNAT --to-destination 192.168.88.205:7741

sudo iptables -t nat -A PREROUTING -p tcp --dport 7742 -i WANifc -j DNAT --to-destination 192.168.88.205:7742

“WANifc“ is your interface with public ip.

On the CAS server side, you need to redirect the incoming port 7741 to the gate_bind_ip (10.3.1.1)

sudo iptables -t nat -A PREROUTING -p tcp --dport 7741 -i ethXifc -j DNAT --to-destination 10.3.1.1:7741

“ethXifc” is your interface in network with router.

 

Related content

Copyright © 2020-2024 General Bytes USA LLC