User`s guide

Example Scripts
Chapter 17 Command Line Interface 284
Example Scripts
Save IP tables options permanently
Add the following command in the /usr2/rc.user script file just above exit 0.
Disabling Telnet is just shown as one example.
1. Create a new script file /usr2/run.user that includes the desired
commands.
iptables -A INPUT -p tcp --dport 23 -j DROP
2. Run the following command to make the script executable
chmod 755 /usr2/run.user
3. Add the following command in the /usr2/rc.user script, just above exit 0:
ln -s /usr2/run.user /etc/rc.d/rc2.d/S60runuser
4. Reboot:
reboot
If the Digi Passport unit is reset to factory defaults, the file /usr2/rc.user script
file is moved to file /usr2/rc.user.old# and the default file rc.user is restored.
Change RADIUS socket ports
The radius client obtains the radius socket ports to use via the file
/etc/services. The client only looks up the lines starting with radius and
radacct.
1. In file /etc/services, change lines starting with radius and radacct to the
desired socket numbers. For example:
radius 1645/tcp
radius 1645/ucp
radacct 1646/tcp
radacct 1646/ucp
2. After editing /etc/services, copy it to /usr2:
cp /etc/services /usr2
3. Edit /usr2/rc.user and add this line just above exit 0:
cp -a /usr2/services /etc/services
4. Reboot:
reboot
If the Digi Passport unit is reset to factory defaults, the script file
/usr2/rc.user is moved to /usr2/rc.user.old# and the default file rc.user is
restored.