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

Allowing peer-to-peer ssh/rdp/vnc #62

Open
zqyr opened this issue Jun 12, 2023 · 0 comments
Open

Allowing peer-to-peer ssh/rdp/vnc #62

zqyr opened this issue Jun 12, 2023 · 0 comments

Comments

@zqyr
Copy link

zqyr commented Jun 12, 2023

How can one go about letting peers talk to each other via ssh/rdp/vnc protocols?

Take for example on vnc protocol. So far, I thought this might have had helped,

iptables' rules.v4 (on wireguard server, say 10.66.66.1)

# Allow WireGuard traffic between peers
-A FORWARD -i wg0 -o wg0 -j ACCEPT
-A FORWARD -i wg0 -m state --state RELATED,ESTABLISHED -j ACCEPT

# Allow ICMP (ping) traffic between peers
-A FORWARD -i wg0 -p icmp -j ACCEPT

# Allow SSH traffic between peers
-A FORWARD -i wg0 -p tcp --dport 22 -j ACCEPT

# Allow RDP (Remote Desktop Protocol) traffic between peers
-A FORWARD -i wg0 -p tcp --dport 3389 -j ACCEPT

# Allow VNC (Virtual Network Computing) traffic between peers
-A FORWARD -i wg0 -p tcp --dport 5900:5901 -j ACCEPT

iptables' rules.v4 (on wireguard client/peer, say 10.66.66.200)

-A INPUT -i wg0 -p tcp -m tcp --dport 5900 -j DROP
-A INPUT -i wg0 -p tcp -m tcp --dport 5901 -j DROP
-A INPUT -i wg0 -p tcp -m tcp --dport 5900 -j DROP
-A INPUT -i wg0 -p tcp -m tcp --dport 5901 -j DROP

What am I doing wrong here @rajannpatel ?

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