HomeAppleHow do I route Web Sharing into an UTM digital machine in...

How do I route Web Sharing into an UTM digital machine in a less complicated 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 a less complicated method?

Technique I presently use works, however requires circuitous setup with a number of transferring 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, extra bridged community interface was added. However UI solely reveals en0 and en6 as doable variants (not feth1 I want), 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 leads to 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 an alternative of only one (or perhaps zero)? Possibly there are different helpful QEMU modes that permits one to connect current 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 would like Mac to handle the Wi-Fi half, however not the DHCP / routing / tackle translation)? What are methods to activate the entry level mode in addition to the official "System Settings" -> "Web sharing"?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments