You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I have a problem without solutions. If you can see it, could you give me some advice?
I try to set my output tcp netflow to redsocks, the code is : sudo iptables -t nat -A OUTPUT -p tcp -j REDSOCKS
then I try to use curl, but it becomes xxx@xxx-VirtualBox:~$ curl myip.ipip.net --ipv4 curl: (7) Failed to connect to myip.ipip.net port 80: Connection denied
Before I typed, I have set these rules:
`xxx@xxx-VirtualBox:~$ sudo iptables -t nat -N REDSOCKS
* fix Invalid bind address format bug on macos
* change version number
* add __APPLE__ macro when bind to be compatible with linux and openbsd sockets definition
This reverts commit 8ce821e.
Hello! I have a problem without solutions. If you can see it, could you give me some advice?
I try to set my output tcp netflow to redsocks, the code is :
sudo iptables -t nat -A OUTPUT -p tcp -j REDSOCKS
then I try to use curl, but it becomes
xxx@xxx-VirtualBox:~$ curl myip.ipip.net --ipv4 curl: (7) Failed to connect to myip.ipip.net port 80: Connection denied
Before I typed, I have set these rules:
`xxx@xxx-VirtualBox:~$ sudo iptables -t nat -N REDSOCKS
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d jp6mk2.jp.cloudnode.bid -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 0.0.0.0/8 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 10.0.0.0/8 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 127.0.0.0/8 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 169.254.0.0/16 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 172.16.0.0/12 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 192.168.0.0/16 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 224.0.0.0/4 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -d 240.0.0.0/4 -j RETURN
xxx@xxx-VirtualBox:~$ sudo iptables -t nat -A REDSOCKS -p tcp -j REDIRECT --to-ports 12345`
and the curl is noral.
Now I dont know how to solve it, do you have any good advice?
The text was updated successfully, but these errors were encountered: