19.4 C
New York
Thursday, May 15, 2025

How do I route Web Sharing into an UTM digital machine in an easier method?


I desire a Mac to behave as a Wi-Fi entry level, however route the site visitors not on to the upstream web connection, however into an UTM digital machine.

How do I route Web Sharing into an UTM digital machine in an easier method?

Methodology I at present use works, however requires circuitous setup with a number of shifting components:

  • For "web sharing", particular new interface was created utilizing "System settings" -> "Community" -> "Handle Digital Interfaces…" -> Add bridge.
  • A pair of digital interfaces was created (ifconfig feth0 create; ifconfig feth1 create; ifconfig feth0 peer feth1; ifconfig feth0 up; ifconfig feth1 up).
  • First of the digital interfaces was added to the manually created bridge (ifconfig bridge1 addm feth0).
  • In UTM digital machine settings, further bridged community interface was added. However UI solely reveals en0 and en6 as potential variants (not feth1 I would like), so I wanted to take away it and re-add utilizing uncooked QEMU arguments: -netdev vmnet-bridged,id=net1,ifname=feth1 -device virtio-net-pci.... This ends in one other bridge being created when the VM begins.

diagram depicting main components of the current setup

The scheme works as supposed, however I really feel that it may be optimised/simplified considerably.

Particularly:

  • How do I keep away from needing to create two bridges as a substitute of only one (or perhaps zero)? Possibly there are different helpful QEMU modes that permits one to connect present bridge?
  • How do I keep away from a double NAT and double DHCP servers (one contained in the VM, one made by Mac’s Web sharing)?
  • Can I one way or the other activate Web Sharing with partial elements (I need Mac to handle the Wi-Fi half, however not the DHCP / routing / handle translation)? What are methods to activate the entry level mode moreover the official "System Settings" -> "Web sharing"?

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles