-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# mDNS Over VPN | ||
Use to forward multicast DNS packet. | ||
|
||
For example, you can control smart devices outside without HomePod, iPad and AppleTV. | ||
|
||
But you still need a LAN environment that can connect to your home network. | ||
|
||
## How To Work | ||
Just forward multicast DNS packet to remote LAN. | ||
|
||
## How To Use | ||
* Clone this | ||
* Select domains you want to forward | ||
* Edit source config in `src/config.rs` | ||
```rust | ||
pub fn get_filter_domains() -> Vec<String> { | ||
vec![ | ||
"_homekit._tcp.local".into(), | ||
"_hap._tcp.local".into(), | ||
"_googlecast._tcp.local".into() | ||
] | ||
} | ||
``` | ||
|
||
* Run Server | ||
```sh | ||
cargo run server -a ip:port -i interface | ||
``` | ||
|
||
* Run Client | ||
```sh | ||
cargo run client -a ip:port -i interface | ||
``` | ||
|
||
_**In fact, there are no Server and Clients, query and answer packcet forward to each peer.**_ |