internet wifi sharing - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2011
    0 Post(s)
    0 Thread(s)

    internet wifi sharing

    How can I share the internet on a F-19 laptop to other linux machines over wifi, preferably with authentication.
    I am looking something like connectify (, which facilitates connecting & sharing the same wifi.

  2. #2
    Join Date
    Aug 2010
    Al Ain, UAE
    0 Post(s)
    0 Thread(s)

    Re: internet wifi sharing


    I don't have a rebroadcast solution, but I usually hook the laptop to the upstream Wifi and then hook other machines to the laptop ethernet port:

    #! /bin/bash
    echo Configure a laptop as a wlan0 to eth0 NAT router:
    echo WAN = wlan0, DHCP
    echo LAN = em1,,

    ifconfig em1 down

    # Accept all traffic
    iptables -F
    iptables -P INPUT ACCEPT
    iptables -P OUTPUT ACCEPT
    iptables -P FORWARD ACCEPT

    # General new connection rate limiting for DOS and Brute Force protection
    iptables -I INPUT -p TCP -m state --state NEW -m limit --limit 30/minute --limit-burst 5 -j ACCEPT

    # Configure a port for the LAN hooked to eth0
    ifconfig em1 netmask up

    # Enable IP forwarding
    echo 1 > /proc/sys/net/ipv4/ip_forward

    # Create a NAT firewall
    # WAN = wlan0, LAN = em1
    iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
    iptables -A FORWARD -i wlan0 -o em1 -m state --state RELATED,ESTABLISHED -j ACCEPT
    iptables -A FORWARD -i em1 -o wlan0 -j ACCEPT

    echo On the LAN machine do:
    echo ifconfig eth0 netmask up
    echo route add default gw
    echo Edit /etc/resolv.conf and add the Google public DNS:
    echo nameserver
    echo nameserver
    echo Now the LAN machine should be able to connect to the wild wild world via the laptop.
    echo La voila!

Similar Threads

  1. Sharing VPN connection over WIFI
    By tatave in forum Servers & Networking
    Replies: 1
    Last Post: 20th May 2013, 06:02 PM
  2. Replies: 2
    Last Post: 13th October 2011, 08:02 PM
  3. Internet sharing
    By Ashish Sood in forum Using Fedora
    Replies: 2
    Last Post: 23rd March 2009, 05:55 AM
  4. Sharing wifi (over ethernet)
    By zlx in forum Servers & Networking
    Replies: 5
    Last Post: 25th March 2008, 01:29 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts