pfSense on Watchguard M270
-
It works fine for now. I didn't connect everything at the moment. But I am able to connect now, receiving IP and can organize the VLANs.
As next I need to configure pfsense. Will take some time. thanks guys -
sorry to start the topic again.
I got an m270 and installed pfsense on it. I have inserted the hints for the switch but I can't insert the scripts, keeps throwing me an error No such file or directory when run comand chmod +x for sript
I new and sory for my english -
You need to create those files.
How are you running those commands exactly?
-
@stephenw10 I downloaded one file from the system that has the extension "sh" and modified it with the script gave in previous posts, after which I transferred the file to the "/usr/local/etc/rc.d/" folder. After saving, I tried to start the shell both via the console and via the guia, but it threw out the above error. I writen script in notepad++. I'm a beginner when it comes to these things, so I apologize for some banalities.
-
Ok I assume you mean the switch configuration script as shown here?: https://forum.netgate.com/post/990474
You should create that file not add the code to a existing script.
In my setup I run that script using a shellcmd not via rc.d.
Steve
-
hi, i'm running the M270 too, it works when i switch the ports to forwarding "etherswitchcfg port# forwarding", but it loos the information after rebooting. after the reboot, the ports are disabled
-
In my setup, I'm running the script @startup in Cron.
-
@reiter_f said in pfSense on Watchguard M270:
but it loos the information after rebooting. after the reboot, the ports are disabled
Yes the switch is reset to defaults at boot. You have to reconfigure it at boot each time. It's easiest to do that using a script.
-
@stephenw10
ha, there is no default config
file that you are able to write in? i'm a little bit confused of this strategy,. because there is no ROM storage or something like that..... do you know where the config ist writen temporaly?
how do i link the skript to the boot config, that it will run automatical at booting? ... the best would be to Clean all switch-configs before running the skript... -
When the switch is powered on it comes up with all the ports disabled by default. That's how the switch chip has been configured in hardware.
There are several way to run a script. As discussed above I use a shellcmd to do it.
-
@stephenw10 I created a file with the script that was given before, but it gives me the above problem when I want to run the command. could you (if you are able) write how it is formed exactly and started, I looked for it on the forum but I didn't succeed. Thank you
-
It depends where the script is and what it's named. But here I would use:
[23.05-RELEASE][admin@6100.stevew.lan]/root: ls .cshrc .k5login .profile .ssh backup switch_config.sh .hushlogin .login .shrc .tcshrc realtek-re-kmod-197.00.pkg [23.05-RELEASE][admin@6100.stevew.lan]/root: chmod +x switch_config.sh [23.05-RELEASE][admin@6100.stevew.lan]/root: ls .cshrc .k5login .profile .ssh backup switch_config.sh .hushlogin .login .shrc .tcshrc realtek-re-kmod-197.00.pkg
-
@stephenw10
thank you for the explanation, i will run the skript while booting -
i have done the boot precedure alsow with cron, and run the sript with an crontab
*corntab -e
@reboot /usr/local/bin/setup_switch.sh*
an it runs :)
the most tricky thing was the commands of the vi-editor in the crontab :(for all who arn't using vi-editor (like me):
(i ... for text input | ESC ... for changing to commandline | w: ... for write out | x: ... for exit the Vi-editor) -
For mere mortals like most of us use the included EasyEditor
ee
.Or for cron just install the cron package and use the gui.
-
@stephenw10
i tried arround now for a while, the skript with the WAN and the LAN on all ports works realy fine.the thing with the vlan_mode DOT1Q and the diferent Vlans on the Ports does not.
i've tried it with the Skripft from aboth + the forwarding part, but i don't get an IP (DHCP) on the WAN, when i activate DHCP-server on the LAN - WAN will get the IP from the LAN-DHCP ??the DHCPs on the LAN and OPT-Lans does not work.
wthat i've done wrong?
-
What does your script contain?
How are the interfaces configured?
-
This post is deleted! -
@reiter_f said in pfSense on Watchguard M270:
WAN (wan) -> ix0 -> v4/DHCP4: 192.168.2.102/24
LAN (lan) -> ix1.1 -> v4: 192.168.2.1/24Whatever was configured at that point it's a subnet conflict between WAN and LAN.
-
i have found the mistake :) ...
i deleted all the interfaces and made them new ix1.### ( ### are now the same number as the Vlans from the skript )
now i can use all seperate Ports with seperate Vlans ...
(WAN-DHCP dosen't work but i think i'll start the config again with cloneing my disk from my hyper-V setup)