PaloAltoNetworks / panhandler

Panhandler is a tool to manage config snippets and Skillets for PAN-OS devices
Apache License 2.0
41 stars 19 forks source link

change DEFAULT_PORT not working #215

Closed liyihuang closed 1 year ago

liyihuang commented 4 years ago

I tried to change the username, password and default port when creating the container. however, the default port is still 8080.

here is the command that I used

docker run t -d -e CNC_USERNAME=test -e CNC_PASSWORD=test123 -e DEFAULT_PORT=7080 --name panhandler333 paloaltonetworks/panhandler.

I did look into the container it's still showing 8080 is lisnted

docker run -p 7080:7080 -t -d -e CNC_USERNAME=paloalto -e CNC_PASSWORD=panhandler -e DEFAULT_PORT=7080 --name panhandler333 paloaltonetworks/panhandler

/app # netstat -lpntu Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN -

/app # ps -ef PID USER TIME COMMAND 1 root 0:00 sh /app/cnc/tools/ph.sh 7 cnc_user 0:00 sh /app/cnc/tools/start_app.sh 8 cnc_user 0:02 {celery} /usr/local/bin/python /usr/local/bin/celery -A pan_cnc worker --loglevel=info 40 cnc_user 0:00 {celery} /usr/local/bin/python /usr/local/bin/celery -A pan_cnc worker --loglevel=info 41 cnc_user 0:00 {celery} /usr/local/bin/python /usr/local/bin/celery -A pan_cnc worker --loglevel=info 64 root 0:00 /bin/sh 70 cnc_user 0:00 python3 /app/cnc/manage.py runserver 0.0.0.0:8080 82 cnc_user 0:32 /usr/local/bin/python3 /app/cnc/manage.py runserver 0.0.0.0:8080 109 root 0:00 ps -ef