Right now I want to clone the MAC address from my main PC to my Smoothwall box's RED NIC so that I can interchange in/out of my network if I want to. Also, it is a pain to get the MAC flushed with my ISP and I can't get at my cable modem to reboot it if it doesn't work.
I can clone the MAC address of my NIC to the router once it is all booted up by doing:
ifconfig eth1 hw ether 00:XX:XX:XX:XX:XX
However this isn't saved when I reboot. I tried editing /etc/rc.d/rc.netaddress.up to add the MAC but it just screwed up and wouldn't let me boot.
The RED NIC uses DHCP to obtain its IP address from my ISP, but the GREEN NIC has static settings. The information for my GREEN NIC, and the blank settings for the RED NIC are in
/var/smoothwall/ethernet/settings
I can edit this to add the hardware address I want I think, but I'm not sure what flag I need to set. Here is the details for the file:
code:
CONFIG_TYPE=2
GREEN_DRIVER=ne2k-pci
GREEN_DRIVER_OPTIONS=
GREEN_DEV=eth0
GREEN_DISPLAYDRIVER=ne2k-pci
GREEN_ADDRESS=192.168.0.1
GREEN_NETMASK=255.255.255.0
GREEN_NETADDRESS=192.168.0.0
GREEN_BROADCAST=192.168.0.255
ORANGE_DEV=
RED_DEV=eth1
RED_DRIVER=
RED_DRIVER_OPTIONS=
RED_DISPLAYDRIVER=ne2k-pci
DNS1=
DNS2=
DEFAULT_GATEWAY=
RED_DHCP_HOSTNAME=smoothwall
RED_ADDRESS=0.0.0.0
RED_NETMASK=0.0.0.0
RED_TYPE=DHCP
RED_NETADDRESS=0.0.0.0
RED_BROADCAST=255.255.255.255
"settings" 23L, 464C
I'm thinking it would need to be something like RED_HWADDR=XX:XX:XX:XX:XX:XX but I'm not sure what kind of scripting this is. Google didn't turn up any good answers- I plugged in a couple of the settings, but most of the pages it pulled up aren't in english and didn't include any extra settings in the code anyway. I checked with IPCop since they are pretty similar and they don't have a MAC Address Clone feature either. Also went on #gplsupport on irc.smoothwall.org. They gave me some advice (what I tried and didn't work), but they can't help me because it goes beyond what Smoothwall is designed to do (they couldn't give me a better answer, but they were nice about it).