← Back to team overview

sony-vaio-z-series team mailing list archive

Re: share Internet via WiFi

 

Thank you for the answers, eventually I've got Internet working with
the instructions (may be something is superfluous, but it works with
this configuration):

1) remove Firestarter

2) create with the Network Manager new Ad-hoc network

3) add in /etc/rc.local add lines:

      /sbin/iptables -P FORWARD ACCEPT
      /sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE

4) add in /etc/sysctl.conf:

     net.ipv4.ip_forward=1
     net.ipv4.conf.all.forwarding=1

5) replace /etc/dhcp3/dhcpd.conf by:

  #
  ddns-update-style interim;
  ignore client-updates;

  subnet 10.0.0.0 netmask 255.0.0.0 {
  	option routers IP_OF_WLAN0;
  	option subnet-mask 255.255.255.0;
	option domain-name-servers IP_OF_DNS;
	option ip-forwarding on;
	range dynamic-bootp 10.0.0.01 10.0.0.02;
	default-lease-time 21600;
	max-lease-time 43200;
}
6) in /etc/default/dhcp3-server:

    INTERFACES="wlan0"

7) start dhcp3-server with:

   $sudo /etc/init.d/dhcp3-server start


I think it was not very Sony-vaio-z specific question but it is easier
to be sure that the hardware doesn't make a difference.

best regards,
Andrey Sheyko



References