[Tfug] OK, some advanced network geekery needed...

Ronald Sutherland ronald.sutherland at gmail.com
Thu Nov 15 21:41:38 MST 2007


hmm... have a look at

https://help.ubuntu.com/community/Firestarter

I'll probably be switching from shorewall to firestarter since it looks to
have more eyes on it these days. But to your need it looks like NAT setup is
one of the options, which I did not try, but I did see the option. I assume
it will ask what network device (eth0, ppp...) to use for translation, and
you will have to put a network device on another subnet for the users (DHCP
is nice but not required). I had good luck with virtual NIC's and that may
help... an example from a old 2.4 Linux box (I really need to update that
thing, but its had an uptime of over 9mo and was killed by a 2 hr power
outage, which pissed me off).

/etc/sysconfig/network-scripts/ifcfg-eth0
+---------
DEVICE=eth0
BOOTPROTO=static
IPADDR=63.227.89.82
NETMASK=255.255.255.240
NETWORK=63.227.89.80
BROADCAST=63.227.89.95
ONBOOT=yes
MII_NOT_SUPPORTED=no
+---------

/etc/sysconfig/network-scripts/ifcfg-eth0:1
+--------
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=63.227.89.81
NETMASK=255.255.255.240
NETWORK=63.227.89.80
BROADCAST=63.227.89.95
ONBOOT=yes
MII_NOT_SUPPORTED=no
+--------

I would change the virtual NIC to something like

/etc/sysconfig/network-scripts/ifcfg-eth0:1
+--------
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=192.168.5.1
NETMASK=255.255.255.0
NETWORK=192.168.5.0
BROADCAST=192.168.5.255
ONBOOT=yes
MII_NOT_SUPPORTED=no
+--------

and if possible run a DHCP server for that subnet (I've not tried that),
then run your eth0 cable to a wifi or switch/hub and tell everyone on it to
set an address in the 192.168.5.x range and gateway at 192.168.5.1 (DHCP
would be nice for that part). If your not using eth0 for other stuff then I
guess the virtual NIC is not needed but its cool if it can be made to work.
NAT will send everything it gets from 192.168.5.1 to the ppp device (or
whatever it was told to use) and all is good  (or I could be totally wrong
>:-)

On Nov 15, 2007 8:43 PM, Jim March <1.jim.march at gmail.com> wrote:

> Sadly, my wonderful little Celldata-to-WiFi adapter box appears to be
> no longer with us.  I may be able to salvage it by soldering power
> connections to the motherboard but...it doesn't look good.
>
> The good news: the PCMCIA Verizon cellmodem that was in it now works
> under Gutsy.  So I'm not "down".  But I can't provide a WiFi hotspot
> for others anymore...and I actually need that capability for portable
> political activism.  I also do user support and used to use the
> external router box to provide emergency Ethernet and/or WiFi to do
> driver updates or otherwise get somebody up.
>
> So the query is:
>
> How do I gateway/route the cellmodem signal out to my laptop's WiFi
> adapter and duplicate the functionality of the dead box in Gutsy?
>
> The parts:
>
> * Laptop with Gutsy (Acer cheapo).
>
> * The cellmodem card is a Kyocera KPC650 in a PCMCIA slot.  Gutsy's
> network monitor calls it ppp0.  Gutsy thinks this is some sort of
> dialup modem.  The contents of my /etc/wvdial.conf file looks like
> (with obvious items x-ed out):
>
> [Dialer verizon]
> Phone = #777
> Password = xxx
> Username = xxxxxxxxxx at vzw3g.com
> [Dialer Defaults]
> Modem = /dev/ttyUSB0
> Baud = 115200
> Init = ATZ
> Dial Command = ATDT
> Stupid mode = 1
>
> * My WiFi is an Intel chipset.  Wicd says it's "eth1".
>
> * I also have working motherboard Ethernet and being able to gateway
> from the Verizon card OUT to Ethernet would be damned good too.  It's
> Eth0 via the Sky2 module (Marvell chipset).
>
> I'm guessing that passing the cellmodem internet connection to BOTH
> the Ethernet and WiFi ports would be tricky.  I can live with "one at
> a time", selected via script or similar.
>
> IF the Intel WiFi isn't going to work for this function, I have an
> interesting option: when I looked inside the Kyocera router, I found a
> mini-PCI slot with a WiFi card exactly like what's in my laptop,
> complete with the same antenna ports :).  I don't know the chipset yet
> as it's encased in steel plate but since the Kyocera router (RIP?) is
> a Linux-based device, odds are it's WiFi card will work right off the
> bat, replacing the Intel.  (Remember, this is the laptop that was
> Jude's victim <wink!> and lost it's original Atheros mini-PCI card,
> and the laptop had no problem with the Intel swapout.)
>
> I assume I need some sort of simple router software?
>
> Any help welcome :).
>
> NOTE: before I posted, I googled and found this:
>
> http://ubuntuforums.org/showthread.php?t=376283
>
> At a glance anyways, is this on the right track?
>
> Jim
>
> _______________________________________________
> Tucson Free Unix Group - tfug at tfug.org
> Subscription Options:
> http://www.tfug.org/mailman/listinfo/tfug_tfug.org
>



More information about the tfug mailing list