Skip to content

Automate NAT configuration #36

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Centaurus99 opened this issue Apr 10, 2024 · 1 comment
Open

Automate NAT configuration #36

Centaurus99 opened this issue Apr 10, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@Centaurus99
Copy link
Member

Allow rattan-cli to access the internet.

@Centaurus99 Centaurus99 added the enhancement New feature or request label Apr 16, 2024
@BobAnkh BobAnkh added this to the v0.1.1 milestone Apr 16, 2024
@Lethe10137
Copy link

Lethe10137 commented Apr 3, 2025

A temporary walk-around on Ubuntu 22.04 :

# Allow ip forwarding
echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward

#setup NAT
sudo iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o <Your network interface> -j MASQUERADE

#setup FORWARD
sudo iptables -A FORWARD -s 10.0.0.0/8 -j ACCEPT
sudo iptables -A FORWARD -d 10.0.0.0/8 -j ACCEPT

Run the script above before starting rattan. No lasting change after reboot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants