Subject: Re: Change/Clone a MAC/NIC Address?
To: Gene ENonymous <yancm@sdf.lonestar.org>
From: John Klos <john@sixgirls.org>
List: port-mac68k
Date: 04/06/2002 17:46:32
> 2) Enable IP/NAT on the NetBSD box so I can get out onto the
> "temporary registration" network that DHCP returns.
>
> DHCP does come up on sn0, but with a 10.x.x.x address and
> a bogus route and nameservers that lead only to the registration
> site.
If they (the ISP) use 10.x.x.x, you might consider using 192.168 or some
other different nonroutable network.
> Maybe someone could offer a minimum NAT setup which could allow
> me to try this? Do I need ipfilter and NAT? Configuration files
> for both?
/etc/ipnat.conf:
map sn0 192.168.1.0/24 -> 0/32 proxy port ftp ftp/tcp
map sn0 192.168.1.0/24 -> 0/32 portmap tcp/udp 10000:65000
map sn0 192.168.1.0/24 -> 0/32
/etc/ipf.conf:
pass in from any to any
pass out from any to any
/etc/sysctl.conf:
net.inet.ip.forwarding=1
/etc/rc.conf (add these):
ipnat=YES
ipfilter=YES
How's that for simple?
John Klos
Sixgirls Computing Labs