notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photos
All times are UTC
Ukraine
The recently imposed "must be logged in" restriction is a response to increased bot traffic on the site. This affects search, commits, and vuxml pages.
Search engines are not blocked. Try using "site:www.freshports.org" and your search terms.
After the ports freeze to fix some stuff, the freeze is over. I have some work to do before FreshPorts can start processing commits again before it can start processing again. I've created an issue for that.
Port details
mtg MTPROTO proxy server for Telegram
2.2.8_3 net on this many watch lists=1 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2.2.8_2Version of this port present on the latest quarterly branch.
Maintainer: drtr0jan@yandex.ru search for ports maintained by this maintainer
Port Added: 2026-03-25 14:45:06
Last Update: 2026-07-10 07:54:15
Commit Hash: 4ea3547
People watching this port, also watch:: adguardhome, amnezia-tools, cacti-php84, asterisk20, opensmtpd
License: MIT
WWW:
https://github.com/9seconds/mtg
Description:
Mtg is an implementation of MTProto proxy in Golang. Features: - Lightweight: Maximizes performance while keeping the code maintainable. - Easy Deployment: Inspired by ShadowSocks; avoids "promoted channels". - Single Secret: One secret per instance to keep configuration simple. - No WebUI: Purely CLI/config-driven to remain lean and secure.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port

Manual pages:
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist
Expand this list (6 items)
Collapse this list.
  1. bin/mtg
  2. @dir(www,www,750) /usr/local/etc/mtg
  3. @sample(www,www,640) /usr/local/etc/mtg/config.toml.sample
  4. /usr/local/share/licenses/mtg-2.2.8_3/catalog.mk
  5. /usr/local/share/licenses/mtg-2.2.8_3/LICENSE
  6. /usr/local/share/licenses/mtg-2.2.8_3/MIT
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • mtg
Dependency lines:
  • mtg>0:net/mtg
To install the port:
cd /usr/ports/net/mtg/ && make install clean
To add the package, run one of these commands:
  • pkg install net/mtg
  • pkg install mtg
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: mtg
Flavors: there is no flavor information for this port.
distinfo:
TIMESTAMP = 1775586509 SHA256 (go/net_mtg/mtg-v2.2.8/v2.2.8.mod) = 8d5b04ab6c55162732db5971d339ea314f85c34df9bed33eb5c5d2463635b8bf SIZE (go/net_mtg/mtg-v2.2.8/v2.2.8.mod) = 2157

Expand this list (2 items)

Collapse this list.

SHA256 (go/net_mtg/mtg-v2.2.8/v2.2.8.zip) = db8e1aa5e60227c8449a951ec2973bbd0a7ef5d7fde72b816c060bd27d118a2b SIZE (go/net_mtg/mtg-v2.2.8/v2.2.8.zip) = 294559

Collapse this list.


No package information for this port in our database
Sometimes this happens. Not all ports have packages. Perhaps there is a build error. Check the fallout link: pkg-fallout
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. go126 : lang/go126
Fetch dependencies:
  1. go126 : lang/go126
There are no ports dependent upon this port

Configuration Options:
No options to configure
Options name:
net_mtg
USES:
go:1.26+,modules zip
FreshPorts was unable to extract/find any pkg message
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://proxy.golang.org/github.com/9seconds/mtg/v2/@v/
Collapse this list.

Number of commits found: 7

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.2.8_3
10 Jul 2026 07:54:15
commit hash: 4ea354713284ca756537346a9ebc6df56184ed31commit hash: 4ea354713284ca756537346a9ebc6df56184ed31commit hash: 4ea354713284ca756537346a9ebc6df56184ed31commit hash: 4ea354713284ca756537346a9ebc6df56184ed31 files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.12 / 1.26.5
2.2.8_2
03 Jun 2026 17:54:22
commit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bdcommit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bdcommit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bdcommit hash: dd8dc2a59ddc46a12ace1cc4f7a953de512853bd files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.11 / go-1.26.4
2.2.8_1
09 May 2026 17:25:51
commit hash: 5f9824aeed64e3cba94562b6c765c4cb9ec90f9ccommit hash: 5f9824aeed64e3cba94562b6c765c4cb9ec90f9ccommit hash: 5f9824aeed64e3cba94562b6c765c4cb9ec90f9ccommit hash: 5f9824aeed64e3cba94562b6c765c4cb9ec90f9c files touched by this commit
Adam Weinberger (adamw) search for other commits by this committer
various: Bump ports for Go 1.26.3
2.2.8
10 Apr 2026 20:44:08
commit hash: 64b3e5969883b4679b3dc1dda34a1cdf6442ff85commit hash: 64b3e5969883b4679b3dc1dda34a1cdf6442ff85commit hash: 64b3e5969883b4679b3dc1dda34a1cdf6442ff85commit hash: 64b3e5969883b4679b3dc1dda34a1cdf6442ff85 files touched by this commit
Yusuf Yaman (nxjoseph) search for other commits by this committer
Author: Boris Korzun
net/mtg: Update 2.2.6 => 2.2.8

Changelogs:
* https://github.com/9seconds/mtg/releases/tag/v2.2.7
* https://github.com/9seconds/mtg/releases/tag/v2.2.8

Port changes:
* Add pkg-post-install script to change default secret
  in the configuration file for security purposes.

PR:		294300
Reported by:	Oleg Streejak <oleg@pcbtech.ru>
Approved by:	Boris Korzun <drtr0jan@yandex.ru> (maintainer)
Approved by:	osa (mentor)
MFH:		2026Q2
2.2.6_1
10 Apr 2026 15:57:27
commit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86acommit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86acommit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86acommit hash: 7507e72a845b5c83e1ad035bd54b1c35482fb86a files touched by this commit
Dag-Erling Smørgrav (des) search for other commits by this committer
various: Bump go ports for go-1.25.9 / 1.26.2
2.2.6
31 Mar 2026 18:16:46
commit hash: 5389fe642200228b24d315fd72366cd23d169c09commit hash: 5389fe642200228b24d315fd72366cd23d169c09commit hash: 5389fe642200228b24d315fd72366cd23d169c09commit hash: 5389fe642200228b24d315fd72366cd23d169c09 files touched by this commit
Yusuf Yaman (nxjoseph) search for other commits by this committer
Author: Boris Korzun
net/mtg: Update 2.1.13 => 2.2.6

Changelogs:
* https://github.com/9seconds/mtg/releases/tag/v2.2.6
* https://github.com/9seconds/mtg/releases/tag/v2.2.5
* https://github.com/9seconds/mtg/releases/tag/v2.2.4
* https://github.com/9seconds/mtg/releases/tag/v2.2.3
* https://github.com/9seconds/mtg/releases/tag/v2.2.2
* https://github.com/9seconds/mtg/releases/tag/v2.2.1
* https://github.com/9seconds/mtg/releases/tag/v2.2.0

PR:		294047
Reported by:	Boris Korzun <drtr0jan@yandex.ru> (maintainer)
Approved by:	maintainer, vvd (mentor)
Co-authored-by:	Vladimir Druzenko <vvd@FreeBSD.org>
2.1.13
25 Mar 2026 14:42:58
commit hash: d3068db9d8a2065158cbc0abcb34054ca8d79849commit hash: d3068db9d8a2065158cbc0abcb34054ca8d79849commit hash: d3068db9d8a2065158cbc0abcb34054ca8d79849commit hash: d3068db9d8a2065158cbc0abcb34054ca8d79849 files touched by this commit
Torsten Zuehlsdorff (tz) search for other commits by this committer
net/mtg: new port, MTPROTO proxy server for Telegram

PR:		233908

Number of commits found: 7