Firewall #36
Replies: 6 comments 3 replies
-
Hello @mcordes92 Are both clients on the same wireguard instance? Can you share a print screen of your firewall screen? Warning: if you have any sensitive information, on your firewall, you should remove from the printscreen and from iptables output. cheers. |
Beta Was this translation helpful? Give feedback.
-
Here is the iptables
|
Beta Was this translation helpful? Give feedback.
-
Hello @mcordes92
If you answered yes for both questions, your firewall doesn't seen to be blocking any traffic. It doesn't look that is an issue with your firewall configuration. docker exec -it wireguard_webadmin bash Make sure you can ping between both hosts first. |
Beta Was this translation helpful? Give feedback.
-
are you trying to connect/reach the main peer IP address or an ip behind the peer? (site-to-site) |
Beta Was this translation helpful? Give feedback.
-
my English is not that good, it is difficult to explain my configuration behind it because there is a vlan in between |
Beta Was this translation helpful? Give feedback.
-
Looking at your firewall rules, I resumed the following: wg+ -> eth0 172.16.0.0/12 REJECT wg1 -> eth0 10.212.0.0/16 and 192.168.0.0/24 ACCEPT wg0 -> wg0 ACCEPT wg+ -> wg+ DROP FORWARD POLICY: DROP wg+ refers to any wireguard interface. Notes: 2- traffic from wg1 to wg0 is allowed, but not from wg0 to wg1. 3- When analyzing iptables rules, read from top to bottom. If a packet matches a rule, it stops there. If it doesn't match, it proceeds to the next rule. If no rule matches, the chain policy is applied. 4- Take a look on the counters (columns pkts and bytes) from your iptables output. Every time a packet is matched, the counters increase. Columns with 0, means that the rule is probably not being used. 5- Maybe your firewall is not doing exactly what you expect, so I would recommend reviewing the rules. 6- For isolating any firewall issues, I would strongly suggest to insert a "ALLOW ALL" rule as I mentioned before, and running your tests again. 7- Also review my other messages, for site-to-site configurations, ensure that the networks behind the client are listed in the AllowedIPs. WireGuard requires precise configuration unless you are masquerading the traffic before it leaves the client. You have some debugging and tests to do until you find the issue. Looks like something in your network environment, not actually docker. just make sure to insert the rule that I mentioned on point 6 to rule out any firewall issue. Cheers |
Beta Was this translation helpful? Give feedback.
-
Hello,
I need help with the firewall. I have the following problem: I have my Wireguard client active on my computer and I have a system on the PC that has port 3001 and also listens on all IP addresses. In the firewall, I have also set that all peers can communicate with each other, but now I cannot reach my service on port 3001.
Beta Was this translation helpful? Give feedback.
All reactions