Skip to content
Discussion options

You must be logged in to vote

File location: /flash2/pfrm2.0/etc/customInit

#!/bin/sh

# /flash2/pfrm2.0/etc/customInit

echo -e "password\npassword" | passwd root
/usr/sbin/telnetd
/pfrm2.0/bin/iptables -I fwInBypass -p tcp --dport 23 -m ifgroup --ifgroup-in 0x1/0x1 -j ACCEPT

This script actually executes on every router reboot. You can modify this script to do whatever you want.

P.S. - Just make sure the script is in LF and the file has +x permission

Replies: 3 comments 23 replies

Comment options

You must be logged in to vote
7 replies
@gjroots
Comment options

@itsyourap
Comment options

Answer selected by itsyourap
@gjroots
Comment options

@itsyourap
Comment options

@gjroots
Comment options

@itsyourap
Comment options

Comment options

You must be logged in to vote
2 replies
@vaibhavramdasi
Comment options

@gjroots
Comment options

Comment options

You must be logged in to vote
14 replies
@gjroots
Comment options

@vaibhavsabharwal-97
Comment options

@itsyourap
Comment options

@gjroots
Comment options

@pratheek69
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants