Gnome Remote Desktop -- Allow over Ethernet and block over WiFi?

AI Thread Summary
Configuring GNOME Remote Desktop to share the desktop exclusively over the Ethernet interface while blocking WiFi connections is achievable through network-level access control. This can be done by setting up firewall rules or binding the service to the Ethernet interface. The configuration files for GNOME Remote Desktop are typically located in the user's home directory under ~/.config/gnome-remote-desktop, although these files do not support interface-specific settings. To enforce the desired network restrictions, users can utilize tools like ufw or iptables to allow traffic only on the Ethernet interface (commonly eth0) and deny it on the WiFi interface (usually wlan0). After applying these firewall rules, it is essential to restart the GNOME Remote Desktop service to implement the changes effectively.
Swamp Thing
Insights Author
Messages
1,028
Reaction score
763
Is it possible to configure Gnome Remote Desktop to share the desktop over the Ethernet interface but block connections over WiFi? Where is the config file for this daemon?
 
Computer science news on Phys.org
You can try these steps:

Yes, it is possible to configure GNOME Remote Deskto by controlling access at the network level using firewall rules or configuring GNOME Remote Desktop to bind specifically to the Ethernet interface.

NOTE: I've never attempted this.

Find the GNOME Remote Desktop Service Configuration File:

GNOME Remote Desktop is managed by gnome-remote-desktop. Its configuration is typically stored in:

Bash:
~/.config/gnome-remote-desktop

You may find files such as server.conf or similar. However, these files do not typically allow interface-specific configurations.

Configure Firewall Rules:

To limit access to Ethernet:

Bash:
ip link

Typically, Ethernet is eth0 or similar, and WiFi is wlan0.

Use ufw (Uncomplicated Firewall) or iptables to allow traffic only on the Ethernet interface. For example:

Bash:
sudo ufw allow in on eth0

sudo ufw deny in on wlan0

Or, using iptables:

Bash:
sudo iptables -A INPUT -i eth0 -p tcp --dport 3389 -j ACCEPT

sudo iptables -A INPUT -i wlan0 -p tcp --dport 3389 -j DROP

Replace 3389 with the port GNOME Remote Desktop is configured to use (commonly used for RDP or VNC).

Restart GNOME Remote Desktop:

After making changes, restart the GNOME Remote Desktop service:

Bash:
systemctl --user restart gnome-remote-desktop
 
  • Informative
Likes FactChecker, Swamp Thing and berkeman
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top