# Spreed.me video outside network thru pfsense

**URL:** <https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395>\
**Category:** ℹ️ Support\
**Tags:** talk-app\
**Created:** [November 22, 2016, 6:50pm UTC](https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395 "2016-11-22T18:50:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![robhedrick](https://help.nextcloud.com/letter_avatar/robhedrick/32/6_449c533f586939b6e5f246632a46421f.png) [@robhedrick](https://help.nextcloud.com/u/robhedrick)\
**Post date:** [November 22, 2016, 6:50pm UTC](https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395/1 "2016-11-22T18:50:36Z")

</div>

I have tried every combo of configurations to get [spreed.me](http://spreed.me) working outside of the local network with no luck. Hopefully _someone_ can help me.

I have NextCloud(virtualized) working behind a pfsense firewall. I get a static /28 block of public ip’s from my ISP which are routed to my WAN interface over a PPPoE link. I can’t _directly_ assign a public ip to an interface on the nextcloud server, but I can NAT them.

I’ve installed coturn and configured it in a million different ways.

Right now the NextCloud server has 3 nics  
(_lan address_) 10.x.x.131 → (_public address_)y.y.y.46 1:1 NAT for NextCloud  
(_lan address_) 10.x.x.132 → (_public address_)y.y.y.36 1:1 NAT for Turn Server Listening ip  
(_lan address_) 10.x.x.133 → (_public address_)y.y.y.37 1:1 NAT for Alt turn server listening ip

Firewall NAT/Rules:

 ![](https://help.nextcloud.com/uploads/default/original/2X/a/a6cb227e4057b9d5c0e673984967c8d35aee2467.png)  
Relevant webrtc config:  
` turnURIs = turn:y.y.y.36:3478?transport=udp turn:y.y.y.36:3478?transport=tcp turn:y.y.y.37:3478?transport=udp turn:y.y.y.37:3478?transport=tcp`

Coturn Config:  
`listening=port=3478 alt-listening-port=0 tls-listening-port=5348 alt-tls-listening-port=0 listening-ip=x.x.x.132 listening-ip=x.x.x.133 external-ip=y.y.y.36 external-ip=y.y.y.37 fingerprint use-auth-secret static-auth-secret=XXXXXXXXXXXXXXXXXXXXXXXXXX total-quota=100 bps-capacity=0 stale-nonce log-file=/var/log/coturn/turn.log no-loopback-peers no-multicast-peers min-port=49152 max-port=49200 verbose Verbose`

Here is the result when I attempt a call to/from outside the network.  
`2028: session 004000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 000000000000000002: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 007000000000000003: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 004000000000000002: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 000000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 004000000000000003: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 000000000000000003: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 007000000000000002: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 007000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 000000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 004000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 005000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 001000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 007000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 004000000000000006: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 001000000000000002: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 004000000000000005: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 006000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 007000000000000005: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 000000000000000005: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2028: session 001000000000000002: TCP socket closed remotely x.x.x.1:6536 2028: session 000000000000000005: TCP socket closed remotely x.x.x.1:22282 2028: session 001000000000000002: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.132:3478, remote x.x.x.1:6536, reason: TCP connection closed by client (callback) 2028: session 000000000000000005: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.133:3478, remote x.x.x.1:22282, reason: TCP connection closed by client (callback) 2028: session 001000000000000002: delete: realm=<xxxxxx.cloud>, username=<> 2028: session 000000000000000005: delete: realm=<xxxxxx.cloud>, username=<> 2028: session 007000000000000005: TCP socket closed remotely x.x.x.1:19879 2028: session 007000000000000005: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.132:3478, remote x.x.x.1:19879, reason: TCP connection closed by client (callback) 2028: session 007000000000000005: delete: realm=<xxxxxx.cloud>, username=<> 2028: session 007000000000000004: TCP socket closed remotely x.x.x.1:17637 2028: session 001000000000000001: TCP socket closed remotely x.x.x.1:21210 2028: session 004000000000000006: TCP socket closed remotely x.x.x.1:56237 2028: session 001000000000000001: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.132:3478, remote x.x.x.1:21210, reason: TCP connection closed by client (callback) 2028: session 004000000000000006: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.133:3478, remote x.x.x.1:56237, reason: TCP connection closed by client (callback) 2028: session 001000000000000001: delete: realm=<xxxxxx.cloud>, username=<> 2028: session 004000000000000006: delete: realm=<xxxxxx.cloud>, username=<> 2028: session 006000000000000001: TCP socket closed remotely x.x.x.1:29034 2028: session 004000000000000005: TCP socket closed remotely x.x.x.1:38587 2028: session 004000000000000005: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.133:3478, remote x.x.x.1:38587, reason: TCP connection closed by client (callback) 2028: session 007000000000000004: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.132:3478, remote x.x.x.1:17637, reason: TCP connection closed by client (callback) 2028: session 004000000000000005: delete: realm=<xxxxxx.cloud>, username=<> 2028: session 006000000000000001: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.133:3478, remote x.x.x.1:29034, reason: TCP connection closed by client (callback) 2028: session 007000000000000004: delete: realm=<xxxxxx.cloud>, username=<> 2028: session 006000000000000001: delete: realm=<xxxxxx.cloud>, username=<> 2029: session 004000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2029: session 000000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2029: session 004000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2029: session 000000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2031: session 004000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2031: session 000000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2031: session 004000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2031: session 000000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2032: session 004000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2032: session 000000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2032: session 004000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2032: session 000000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2034: session 004000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2034: session 000000000000000001: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2034: session 004000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2034: session 000000000000000004: realm <xxxxxx.cloud> user <>: incoming packet ALLOCATE processed, success 2036: session 004000000000000001: realm <xxxxxx.cloud> user <>: incoming packet BINDING processed, success 2036: session 000000000000000001: realm <xxxxxx.cloud> user <>: incoming packet BINDING processed, success 2043: session 004000000000000004: TCP socket closed remotely x.x.x.1:35090 2043: session 004000000000000004: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.132:3478, remote x.x.x.1:35090, reason: TCP connection closed by client (callback) 2043: session 004000000000000004: delete: realm=<xxxxxx.cloud>, username=<> 2043: session 000000000000000004: TCP socket closed remotely x.x.x.1:14277 2043: session 000000000000000004: closed (2nd stage), user <> realm <xxxxxx.cloud> origin <>, local x.x.x.133:3478, remote x.x.x.1:14277, reason: TCP connection closed by client (callback) 2043: session 000000000000000004: delete: realm=<xxxxxx.cloud>, username=<> root@nextcloud1:/var/log/coturn#`

The _remote_ address is the LAN interface on the firewall.

Any ideas? Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![John\_Shotton](https://help.nextcloud.com/user_avatar/help.nextcloud.com/john_shotton/32/17553_2.png) [@John\_Shotton](https://help.nextcloud.com/u/John_Shotton)\
**Post date:** [November 22, 2016, 7:15pm UTC](https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395/2 "2016-11-22T19:15:54Z")

</div>

I used the snap install of [spreed.me](http://spreed.me) on Ubuntu and it setup the config file to point to the [spreed.me](http://spreed.me) turn server. it seems to be working when I have tried it on my cell to my office and also to my other office that is using a vpn .

> **[nextcloud/spreedme-snap](https://github.com/nextcloud/spreedme-snap)**
>
> spreedme-snap - :phone: :package: Snap to enable users to chat and make audio/video calls using Spreed.ME from within Nextcloud

John

---

<div class="post-metadata">

**Author:** ![robhedrick](https://help.nextcloud.com/letter_avatar/robhedrick/32/6_449c533f586939b6e5f246632a46421f.png) [@robhedrick](https://help.nextcloud.com/u/robhedrick)\
**Post date:** [November 22, 2016, 7:42pm UTC](https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395/3 "2016-11-22T19:42:36Z")

</div>

Do you know if I need to uninstall coturn before trying this? I had already attempted to comment out the TurnURI’s, set the StunURL to the spreed url without success.

---

<div class="post-metadata">

**Author:** ![robhedrick](https://help.nextcloud.com/letter_avatar/robhedrick/32/6_449c533f586939b6e5f246632a46421f.png) [@robhedrick](https://help.nextcloud.com/u/robhedrick)\
**Post date:** [December 6, 2016, 7:22pm UTC](https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395/4 "2016-12-06T19:22:33Z")

</div>

Does anyone else have any insight?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [November 6, 2024, 8:46pm UTC](https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395/5 "2024-11-06T20:46:49Z")

</div>

wwe: close old topics

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 9, 2024, 10:56am UTC](https://help.nextcloud.com/t/spreed-me-video-outside-network-thru-pfsense/5395/6 "2024-12-09T10:56:47Z")

</div>


