dslreports logo
Search similar:


uniqs
530

CS_Buddy
Black Mage
Premium Member
join:2002-01-03
Canada

CS_Buddy

Premium Member

Smoothwall Clone MAC Function

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).

phriday613
Your Avatar Is Nice... For Me To Poop On
Premium Member
join:2002-02-06
Eastchester, NY

phriday613

Premium Member

im not sure, but i think the files in the /var/smoothwall folders folders are all dynamic..

that /ethernet/settings file is used by the /etc/rc.d files. I guess if anything, you could try to add it to the setting file, and it would be referenced by the rc.d files.

ill look around.. see what i can find..
heffe
join:2001-04-24
Winnetka, CA

heffe to CS_Buddy

Member

to CS_Buddy
i found this online, if you scroll down the page it has a suggestion on how to set the mac addy (although i havent tried this, gonna try smoothwall in a few days)
»www.ordior.pwp.blueyonde ··· FAQ.html

CS_Buddy
Black Mage
Premium Member
join:2002-01-03
Canada

CS_Buddy

Premium Member

OK I am SO archiving that page! That worked! Thank you! I was trying to do something like that, but when I put it in, it just halted my bootup sequence, and I wasn't quite sure how to script it. Worked like a charm though! Thanks again!