Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
change hostname and password of the firewall in build
« previous
next »
Print
Pages: [
1
]
Author
Topic: change hostname and password of the firewall in build (Read 3721 times)
Vharry
Newbie
Posts: 13
Karma: 0
change hostname and password of the firewall in build
«
on:
October 09, 2023, 08:25:37 am »
For my opnsense firewall I was trying to include my custom name as a hostname like, vharry.localdomain. Does anyone knows which variable to change in which repository, so that I can get my custom name as hostname after installing the ISO.
Also, I wanted to change the default password. Kindly Help me to achieve this.
Logged
almodovaris
Sr. Member
Posts: 318
Karma: 15
Re: change hostname and password of the firewall in build
«
Reply #1 on:
October 09, 2023, 08:42:00 am »
System: Settings: General. First two options are host name and domain name.
System: Access: Users. Push the edit button to change root password.
Logged
OPNsense HW:
Minisforum Venus series UN100C, 16 GB RAM, 512 GB SSD
T-bao N9N Pro, 16 GB RAM, 512 GB SSD
vivekmauli14
Newbie
Posts: 44
Karma: 0
Re: change hostname and password of the firewall in build
«
Reply #2 on:
October 09, 2023, 08:46:56 am »
Thanks for your quick response almodovaris,
Actually I need to change the hostname of the machine at the time of build. So that I can get those changes in my ISO. Please help on how can I achieve this. Which repository creates the Hostname and password for the firewall?
Thanks!
Logged
Patrick M. Hausen
Hero Member
Posts: 6826
Karma: 573
Re: change hostname and password of the firewall in build
«
Reply #3 on:
October 09, 2023, 09:15:10 am »
It's in the file /usr/local/etc/config.xml in the generated installation. Probably the source for that is:
https://github.com/opnsense/core/blob/master/src/etc/config.xml.sample
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
vivekmauli14
Newbie
Posts: 44
Karma: 0
Re: change hostname and password of the firewall in build
«
Reply #4 on:
October 09, 2023, 11:53:12 am »
Thank you Patrick!
I checked changing the hostname and hashed password from line 206 of config.xml.sample, but it didn't work. Please let me know if you are aware of any other file or step in the process.
Thanks,
Vivek
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Zenarmor (Sensei)
»
change hostname and password of the firewall in build