Skip to content
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

The built lightway cannot access the Internet after being connected #118

Open
ghost opened this issue Sep 30, 2023 · 0 comments
Open

The built lightway cannot access the Internet after being connected #118

ghost opened this issue Sep 30, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2023

Follow the steps below

Server settings
ip tuntap add mode tun dev helium-test
ip link set dev helium-test mtu 1350
ip link set dev helium-test up
ip addr replace 10.125.0.1 peer 10.125.0.2 dev helium-test
ip route replace 10.125.0.0/16 via 10.125.0.2

net.ipv4.ip_forward = 1
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ufw disable

lw.out --server --protocol udp --username test --password test --server_ip 0.0.0.0 --server_port 19655 --cert certs/shared.crt --key certs/server.key --tun helium-test

Client settings
lw.out --client --protocol udp --username test --password test --server_ip 1.1.1.1 --server_port 19655 --cert certs/shared.crt --tun helium-test

I can connect to the server and ping 10.125.0.1

But my IP address hasn’t changed

I don't know what's wrong
I need your help

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

No branches or pull requests

0 participants