Initial status:
ra0 = wireless, where I'm getting internet from
eth0 = wired, need to share connection
edit /etc/network/interfaces
## remove the wired connection from dhcp
###auto eth0
#iface eth0 inet dhcp
## assign static address for internal card
# my internal network
auto eth0
iface eth0 inet static
address 192.168.0.1
network 192.168.0.0
netmask 255.255.255.0
broadcast 192.168.0.255
Open Firestarter GUI, (Applications > Internet > firestarter)
Edit > Preferences
Firewall > Network settings
"Internet connected device" = ra0
"Local network connected device" = eth0
check "enable internet connection sharing"
check "enable DHCP for local network"
install webmin (not available from sudo apt-get install)
*****************
Networking > Linux Firewall
Showing IPtable > Packet filtering (filter)
INPUT: add rule
Accept if input interface is eth0
Accept if input interface is lo
FORWARD: add rule
Accept if input interface is eth0 and output interface is ra0 and
state of connection is NEW, ESTABLISHED, RELATED
*****************
Now back to command line
sudo gedit /etc/dhcp3/dhcpd.conf
# added by me
# eth0 subnet configuration
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.2 192.168.0.99;
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
}
sudo gedit /etc/default/dhcp3-server
change
INTERFACES=""
to
INTERFACES="eth0"
sudo /etc/init.d/dhcp3-server start