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
Port details on branch 2026Q2
mtg MTPROTO proxy server for Telegram
2.2.8 net on this many watch lists=0 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.8Version of this port present on the latest quarterly branch.
Maintainer: drtr0jan@yandex.ru search for ports maintained by this maintainer
Port Added: 2026-04-10 17:07:00
Last Update: 2026-04-10 20:44:54
Commit Hash: 690e4cc
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/catalog.mk
  5. /usr/local/share/licenses/mtg-2.2.8/LICENSE
  6. /usr/local/share/licenses/mtg-2.2.8/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: 2

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2.2.8
10 Apr 2026 20:44:54
commit hash: 690e4ccb4b00f3087c30df75d53559bbd5e6ca7bcommit hash: 690e4ccb4b00f3087c30df75d53559bbd5e6ca7bcommit hash: 690e4ccb4b00f3087c30df75d53559bbd5e6ca7bcommit hash: 690e4ccb4b00f3087c30df75d53559bbd5e6ca7b 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

(cherry picked from commit 64b3e5969883b4679b3dc1dda34a1cdf6442ff85)
2.2.6_1
10 Apr 2026 16:19:03
commit hash: 9c91901491db265de51255eeec8093989f724305commit hash: 9c91901491db265de51255eeec8093989f724305commit hash: 9c91901491db265de51255eeec8093989f724305commit hash: 9c91901491db265de51255eeec8093989f724305 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

Number of commits found: 2