Rootless with capabilities: iptables not needed? #501
Replies: 4 comments 5 replies
-
no, that's not the case. iptables is still needed either by udp2raw might work without iptables, depend on ISP, but stability might be compromised. I believe |
Beta Was this translation helpful? Give feedback.
-
The Iptables works at level 3 (IP level), |
Beta Was this translation helpful? Give feedback.
-
@wangyu- I finished setting it up to run without root on both client and server, but I started seeing a substantial amount of packet loss. Performance is restored to normal if I run it as root. Could you help me figure this out? Should I open a new issue for this? |
Beta Was this translation helpful? Give feedback.
-
@wangyu- Now I'm running Wireguard on an OpenWrt router. I need help with something. The server is installed as OpenWrt doesn't come with But when I run
EDIT: Sorry, I realized I should be asking this on the OpenWrt forums. |
Beta Was this translation helpful? Give feedback.
-
Following the wiki page for running udp2raw rootless, I've tested whether it could work without the
-a
option and without manually adding the iptables rule, and surprisingly it did. So, is theCAP_NET_RAW
capability the sole requirement? At least on Linux, of course. If so, I believe the wiki page needs an update.If not, I'd appreciate if you could help me figure out why it's working. The capability allows it to bypass the firewall?
To make sure there is no rule allowing port 4096 in, I ran
sudo iptables -L | grep 4096
, and it returns nothing - nada. Initially I had a rule for it._udp2raw
was created to run the binaryThe systemd unit I'm using:
Beta Was this translation helpful? Give feedback.
All reactions