Skip to content

Instantly share code, notes, and snippets.

@unakatsuo
Created November 3, 2017 10:15
Show Gist options
  • Save unakatsuo/abaa6ac946b20b3b9ff31011f57cbd3b to your computer and use it in GitHub Desktop.
Save unakatsuo/abaa6ac946b20b3b9ff31011f57cbd3b to your computer and use it in GitHub Desktop.
radclient 3GPP request examples
#!/bin/bash
set -e
cat <<EOF | radclient 192.168.56.150 auth testing123
User-Name="81901234567@apn1",
NAS-IP-Address=127.0.0.1,
NAS-Identifier="NAS1",
NAS-Port-Type=Virtual,
Service-Type=Framed-User,
Framed-Protocol=GPRS-PDP-Context,
Called-Station-Id="apn1",
Calling-Station-Id="81901234567",
3GPP-IMSI="123456789012345",
3GPP-Charging-ID=10,
3GPP-PDP-Type=0,
3GPP-SGSN-Address=127.0.0.1,
3GPP-GGSN-Address=127.0.0.1,
3GPP-NSAPI="0",
3GPP-Selection-Mode="0",
3GPP-Charging-Characteristics="0000",
3GPP-IMEISV="0987654321",
3GPP-Rat-Type=EUTRAN,
3GPP-Allocate-IP-Type=Allocate-IPv4-Address
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment