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

Redirect does not seem to happen on my IPv6 only server. #179

Closed
scolastico opened this issue Dec 11, 2023 · 1 comment
Closed

Redirect does not seem to happen on my IPv6 only server. #179

scolastico opened this issue Dec 11, 2023 · 1 comment

Comments

@scolastico
Copy link

I'v installed redsocks with shadowsocks (which is connected to a dual stack server) on my server, shadowsocks works as expected, and redsocks does start and connect to it, but if i make a call it still fails. My plan was to use redsocks to enable my server to make calls to the outside world with ipv4 if ipv6 isnt available.

image

@scolastico
Copy link
Author

scolastico commented Dec 11, 2023

I got it to work. It seems like if the server has no available IPv4, iptables will not even be called to handle the traffic. So my solution is to install bridge-utils and add this to my /etc/network/interfaces to trick the server into thinking it has IPv4 connectivity:

# [...] the other stuff from the file, just add this at the end

auto vmbr0
iface vmbr0 inet static
    address 192.168.178.1/24   
    gateway 192.168.178.1
    bridge_ports none
    bridge_stp off
    bridge_fd 0

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

1 participant