Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUT] Setting up SS7 and the SS7 Gateway locally on Debian 12

Hey HF,

If you're looking to set up an SS7 Gateway on Debian 12, follow this guide. This is for script kiddies and new hackers who want to experiment with telecom networks, VoIP routing, or just learn about SIGTRAN and SS7 signaling.

⚙️ Steps to Install & Configure an SS7 Gateway on Debian 12

🔥 First, update your system
Code
apt update
apt upgrade -y
apt install curl -y

🔥 Install Required Dependencies
Code
apt install -y git build-essential autoconf automake libtool libpcap-dev libmnl-dev libpcre3-dev libssl-dev libconfig-dev pkg-config doxygen libosmocore-dev libosmo-sigtran-dev libtalloc-dev checkinstall

🔥 Disable & Remove AppArmor (optional but recommended)
Code
systemctl stop apparmor
systemctl disable apparmor
apt remove apparmor -y

🔥 Download & Compile Osmocom Libraries (for SIGTRAN Support)
Code
cd /usr/src
git clone https://gitea.osmocom.org/osmocom/libosmocore.git
cd libosmocore
autoreconf -fi
./configure
make -j$(nproc)
make install
ldconfig

🔥 Download & Compile Osmocom SS7 Stack (OsmoSTP)
Code
cd /usr/src
git clone https://gitea.osmocom.org/osmocom/osmo-stp.git
cd osmo-stp
autoreconf -fi
./configure
make -j$(nproc)
make install
ldconfig

🔥 Setup Default SS7 Configuration
Code
mkdir -p /etc/osmocom
nano /etc/osmocom/osmo-stp.cfg

🔥 Add the Following SS7 Gateway Configuration:
Code
log stderr
level debug
filter all 1

mtp3
bind 0.0.0.0
point-code 1.1.1
ni 2

asp 1
remote-ip 127.0.0.1
remote-port 2905
local-port 2906
mode m3ua
network-indicator 2
routing-context 1

🔥 Start SS7 Gateway (OsmoSTP)
Code
osmo-stp -c /etc/osmocom/osmo-stp.cfg

🔥 Enable OsmoSTP as a Service
Code
nano /etc/systemd/system/osmo-stp.service

🔥 Add the Following Service Config:
Code
[Unit]
Description=Osmocom SS7 Signaling Transfer Point (STP)
After=network.target

[Service]
ExecStart=/usr/local/bin/osmo-stp -c /etc/osmocom/osmo-stp.cfg
Restart=on-failure
User=root
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

🔥 Enable & Start the SS7 Service
Code
systemctl daemon-reload
systemctl enable osmo-stp
systemctl start osmo-stp
systemctl status osmo-stp

🎯 Final Notes:
✅ This setup creates a basic SS7 Gateway using OsmoSTP and SIGTRAN.
✅ You can modify /etc/osmocom/osmo-stp.cfg for different point codes and routing options.
✅ Use systemctl status osmo-stp to check if the SS7 gateway is running.
✅ If you run into issues, check logs using journalctl -u osmo-stp.
✅ Ensure your firewall allows traffic on SS7 ports (2905 & 2906) if needed:
Code
ufw allow 2905/tcp
ufw allow 2906/tcp

Enjoy hacking! 🏴‍☠️

You can use https://github.com/restcomm/smscgateway and https://github.com/restcomm/jss7
Hackerone.com/DBMS
Bugcrowd.com/Sleep
[email protected]
Youtube.com/Stripped
Github.com/SleepTheGod
Contact : linkedin.com/in/clumsy/
Contact : T.me/SleepTheGod
(Feb 3, 2025 11:00 PM)Clumsy Wrote:  Hey HF,

If you're looking to set up an SS7 Gateway on Debian 12, follow this guide. This is for script kiddies and new hackers who want to experiment with telecom networks, VoIP routing, or just learn about SIGTRAN and SS7 signaling.

⚙️ Steps to Install & Configure an SS7 Gateway on Debian 12

🔥 First, update your system
Code
apt update
apt upgrade -y
apt install curl -y

🔥 Install Required Dependencies
Code
apt install -y git build-essential autoconf automake libtool libpcap-dev libmnl-dev libpcre3-dev libssl-dev libconfig-dev pkg-config doxygen libosmocore-dev libosmo-sigtran-dev libtalloc-dev checkinstall

🔥 Disable & Remove AppArmor (optional but recommended)
Code
systemctl stop apparmor
systemctl disable apparmor
apt remove apparmor -y

🔥 Download & Compile Osmocom Libraries (for SIGTRAN Support)
Code
cd /usr/src
git clone https://gitea.osmocom.org/osmocom/libosmocore.git
cd libosmocore
autoreconf -fi
./configure
make -j$(nproc)
make install
ldconfig

🔥 Download & Compile Osmocom SS7 Stack (OsmoSTP)
Code
cd /usr/src
git clone https://gitea.osmocom.org/osmocom/osmo-stp.git
cd osmo-stp
autoreconf -fi
./configure
make -j$(nproc)
make install
ldconfig

🔥 Setup Default SS7 Configuration
Code
mkdir -p /etc/osmocom
nano /etc/osmocom/osmo-stp.cfg

🔥 Add the Following SS7 Gateway Configuration:
Code
log stderr
level debug
filter all 1

mtp3
bind 0.0.0.0
point-code 1.1.1
ni 2

asp 1
remote-ip 127.0.0.1
remote-port 2905
local-port 2906
mode m3ua
network-indicator 2
routing-context 1

🔥 Start SS7 Gateway (OsmoSTP)
Code
osmo-stp -c /etc/osmocom/osmo-stp.cfg

🔥 Enable OsmoSTP as a Service
Code
nano /etc/systemd/system/osmo-stp.service

🔥 Add the Following Service Config:
Code
[Unit]
Description=Osmocom SS7 Signaling Transfer Point (STP)
After=network.target

[Service]
ExecStart=/usr/local/bin/osmo-stp -c /etc/osmocom/osmo-stp.cfg
Restart=on-failure
User=root
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target

🔥 Enable & Start the SS7 Service
Code
systemctl daemon-reload
systemctl enable osmo-stp
systemctl start osmo-stp
systemctl status osmo-stp

🎯 Final Notes:
✅ This setup creates a basic SS7 Gateway using OsmoSTP and SIGTRAN.
✅ You can modify /etc/osmocom/osmo-stp.cfg for different point codes and routing options.
✅ Use systemctl status osmo-stp to check if the SS7 gateway is running.
✅ If you run into issues, check logs using journalctl -u osmo-stp.
✅ Ensure your firewall allows traffic on SS7 ports (2905 & 2906) if needed:
Code
ufw allow 2905/tcp
ufw allow 2906/tcp

Enjoy hacking! 🏴‍☠️

You can use https://github.com/restcomm/smscgateway and https://github.com/restcomm/jss7

Part 2

Code
https://pastebin.com/raw/NeF5Dktp
Hackerone.com/DBMS
Bugcrowd.com/Sleep
[email protected]
Youtube.com/Stripped
Github.com/SleepTheGod
Contact : linkedin.com/in/clumsy/
Contact : T.me/SleepTheGod


Possibly Related Threads...
Thread / Author Replies Views Last Post
by TyrOct 1, 2026 05:12 AM 3 76 Oct 1, 2026 05:12 AM
Last Post: Sift
by descodificadorAug 30, 2025 07:25 PM 2 303 Aug 30, 2025 07:25 PM
Last Post: descodificador
by taitotikarotikaroJun 22, 2025 05:30 AM 7 433 Jun 22, 2025 05:30 AM
Last Post: ʀ00ȶʐɨʟʟǟ