I'm currently using a cheap dongle from Amazon using a Ralink chipset, I'm not sure of the exact model. PoE would be cool combined with the Pi, I may try that out.malakai wrote:Looks great can't wait to get home and try it out.
What wireless adapter are you using?
Also want to try out with http://www.raspberrypi.org/phpBB3/viewt ... =41&t=3059 A DIY PoE.
Code: Select all
iw list
The first line is correct. The "<" symbol send the contents of the iptables.ipv4.nat file to the iptables-restore program. Sorry it doesn't work. What is the problem, exactly?poing wrote:This does sound interesting and is exactly what I need for my embedded project, so, after a double backup of my precious installation, I tried it, but it doesn't work
.
Is the line:
"iptables-restore < /etc/iptables.ipv4.nat " correct, or should it be:
"iptables-restore > /etc/iptables.ipv4.nat" ?
Thanks.
Hmm. Try running the following commands and posting the results:poing wrote:I have the Edimax nano stick, which worked great with the setup through the icon in the latest Raspian distro. I then worked through your tutorial, where there were two problems.
The first was that I was not allowed to complete one step using sudo, I had to do "sudo bash #" before I went through. Sadly I didn't record the exact step (but I can repeat the process after replacing the backup), I think it was "iptables-save > /etc/iptables.ipv4.nat".
the next problem was that I had to change, I think, "/etc/udhcpd.conf" or "/etc/hostapd/hostapd.conf" where a value had to be changed from "no" to "yes" to allow changes.
After 'firing up' nothing happened. I then restarted the Pi but still no go. Before the Edimax was blinking all the time with a small blue led, but now it's just dead. I guess I'll retry and carefully note the steps above as I really would like this to work. Sadly I'm a newbie, so I have no clue myself
Code: Select all
sudo service hostapd status
sudo service udhcpd status
sudo ifconfig
sudo iwconfig
Code: Select all
iptables-restore < /etc/iptables.ipv4.nat
Code: Select all
up iptables-restore < /etc/iptables.ipv4.nat
CoovaChilli (http://coova.org/CoovaChilli) looks like it will do what you want. I've never used it but it appears to be what you're looking for.e21c wrote:Hello,
I would like to make web page, which will be working as splash (welcome) screen for clients who connect to my AP.
Now, I have lighttpd server + webpy (fastCGI) working on RPi. I connect wifi dongle (TL-WN722) to hub and run hostap + dhcp.
But I don't know how to configure net traffic redirecting.
I'm glad you found a solution. That's a great solution, iptables seems to be able to do anything. I may use that in the future.e21c wrote:I solved my problem with command :
sudo iptables -t nat -A PREROUTING -d 0/0 -p tcp –dport 80 -j DNAT –to MyServerIP:80
Thanks hunternet93 for your attempt to solve it.
Code: Select all
sudo service hostapd start
sudo service udhcpd start
I have two Ralink dongles now. I tried the sirlagz tutorial and had initial success where I could log into my Pi with my phone and see the webpage on the Pi (that's what I need), but then MySQL went corrupt. So I decided to install everything from scratch but now it won't work anymorehunternet93 wrote: Hmm. Try running the following commands and posting the results:The first two commands check if HostAPD and uDHPD are running, the second two give some information on your network interfaces. It's very possible I missed a step when writing the instructions, I wrote them during a break a work and haven't had time to verify them on a Pi yet.Code: Select all
sudo service hostapd status sudo service udhcpd status sudo ifconfig sudo iwconfig
Code: Select all
DEAMON_CONF=""
Code: Select all
DEAMON_CONF="/etc/hostapd/hostapd.conf"
Code: Select all
auth_algs=0
Code: Select all
[email protected] ~ $ sudo service hostapd status
[ ok ] hostapd is running.
[email protected] ~ $ sudo service udhcpd status
Usage: /etc/init.d/udhcpd {start|stop|restart|force-reload}
[email protected] ~ $ sudo ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:13:26:2e
inet addr:192.168.1.123 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1302 errors:0 dropped:0 overruns:0 frame:0
TX packets:1086 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1140902 (1.0 MiB) TX bytes:175176 (171.0 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
mon.wlan0 Link encap:UNSPEC HWaddr 00-0F-54-0A-AC-E2-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:130 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12684 (12.3 KiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:0f:54:0a:ac:e2
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6196 (6.0 KiB) TX bytes:6520 (6.3 KiB)
[email protected] ~ $ sudo iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11bgn Mode:Master Frequency:2.427 GHz Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
eth0 no wireless extensions.
mon.wlan0 IEEE 802.11bgn Mode:Monitor Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:on
[email protected] ~ $
Code: Select all
[email protected] ~ $ sudo service udhcpd status
Usage: /etc/init.d/udhcpd {start|stop|restart|force-reload}