Re: laptop into access point?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/29/2008 10:04:10 AM, Manuel Arostegui Ramirez wrote:
El Viernes, 29 de Febrero de 2008 15:49, Mark Greenbank
escribió:
<<snip>>
Well, you just need a couple of iptables rules, as long as
you have your
wireless card properly configurated.
This what I'm using to use my laptop as a gateway to a
wired network (notice
I'm turning it into an ad-hoc mode)

#!/bin/bash
iwconfig eth0 mode ad-hoc
iwconfig eth0 essid AP
iwconfig eth0 key s:yourkey
iwconfig eth0 channel 6
ifconfig eth0 192.168.70.1 up
iptables -t nat -I POSTROUTING -o eth1 -j MASQUERADE
iptables -I FORWARD -i eth0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
<<snip>>
I scratched a similar itch with a linksys travel device, but this is close to what I wanted to do originally. Thanks for the starting point!


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux