# Two syncthing instances in one machine

**URL:** https://forum.syncthing.net/t/two-syncthing-instances-in-one-machine/16162
**Category:** Support
**Created:** [January 9, 2021, 10:59am UTC](https://forum.syncthing.net/t/two-syncthing-instances-in-one-machine/16162 "2021-01-09T10:59:31Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![cosas](https://forum.syncthing.net/user_avatar/forum.syncthing.net/cosas/32/14159_2.png) [@cosas](https://forum.syncthing.net/u/cosas)
#### Post date: [January 16, 2021, 11:26am UTC](https://forum.syncthing.net/t/two-syncthing-instances-in-one-machine/16162/10 "2021-01-16T11:26:03Z")

</div>

Oooch, what a genius idea 😍

I guess you have to do this on all the devices in the LAN remaining hear/speak over the standard 21027 isn’t? Why not tweaking the firewall only on the device(s) running multiple ST instances this way:

```
iptables -t nat -A OUTPUT -p udp --dport 21026 -j DNAT --to-destination :21027
iptables -t nat -A INPUT -p udp --dport 21027 -j SNAT --to-destination :21026

```

?

---

_[View the full topic](https://forum.syncthing.net/t/two-syncthing-instances-in-one-machine/16162)._
