Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 1.14 KB

README.md

File metadata and controls

49 lines (35 loc) · 1.14 KB

arbitrum-nitro-nginx-ufw

No docker-compose

I used to run Arbitrum Nitro Node via docker-compose, a huge mistake.

Due to Docker shenanigans, any docker-compose port publishing is binded to default gateway 0.0.0.0.

This bypasses ufw rules, and to set firewall up requires tedious iptables config.

Steps

  1. Customize start.sh, Dockerfile, ufw-hosts.sh, and ufw-allow.sh to your needs.

  2. Build your image:

docker build -t foo/arbnode .
  1. Run your image:
./docker-start.sh
  1. Check if the Docker node works (we assume that start.sh specifies --http.port=6969):
./check_conn.sh http://localhost:6969;
  1. Configure and start NGINX
cp arb_nitro_proxy /etc/nginx/sites-available;
ln -s /etc/nginx/sites-available/arb_nitro_proxy /etc/nginx/sites-enabled/arb_nitro_proxy;

systemctl restart nginx;
  1. Check if NGINX reverse proxy works
./check_conn.sh http://localhost:8547; # Check on loopback
./check_conn.sh ${public_ip}:8547 # Check on public interface
  1. Enable firewall
./ufw-allow.sh;
ufw enable;