Go Back   Wireless and Wifi Forums > Wireless Networks (Wifi) > Hardware Discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-03-2003, 12:21 PM
Administrator
 
Join Date: Aug 2005
Location: New Zealand
Posts: 669
Default Linux tricks/tips

Hey everyone,

Just done some cool things with my linux box/wireless

To tell you a little bit about my setup, I have a debian linux box with 3 network cards, eth0 (internet) eth1 (connected to my AP on the roof) and eth2 (LAN)

I have the wireless part of my network firewalled off from everything else (for the time being), i thought it'd be a good idea to setup an http redirect on the wireless side if anyone tries to visit any site. So i setup a webserver to listen on 10.23.6.253 (my router) and added this to my iptables

iptables -t nat -A PREROUTING -d ! 10.23.6.0/255.255.255.0 -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 80

Which tells my router that any traffic on port 80 coming in on eth1 (wireless) that's not for 10.23.6.0/24 to redirect it to my router's port 80, which i've put a page with information about my wireless setup.

I've also added remote logging on my AP (as the logs are wiped each time it is reset), my dlink 900+ supports logging to a log server, so i entered the ip of my router (10.23.6.253) and set it up to accept remote logs.

i edited /etc/rc2.d/S10sysklogd

changed SYSLOGD="" to SYSLOGD="-rm 0"
which tells syslogd to accept remote logs and to not add mark to the log files

then in /etc/syslog.conf i added a couple of lines like this:

#Wireless AP logging
10.23.6.254 /var/log/wireless

which tells my box to put anything that comes in from 10.23.6.254 into the file /var/log/wireless

did a touch /var/log/wireless to create the file, then chmod 777 /var/log/wireless to set the permissions (probably doesn't need to be 777 but i was in a hurry)

and bingo, remote logging

If anyone else has any nifty things that they've done, please share how you did them
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
WONT RUN LINUX wireless networking MontyW alt.internet.wireless 9 04-18-2007 05:52 PM
Reading files from linux when you use linux (No partition but 2nd HDD) just_me alt.comp.hardware 2 02-19-2007 08:58 PM
Problem with Cisco wireless card under Suse Linux 10.1 starl8gazer@yahoo.com alt.internet.wireless 18 12-07-2006 09:29 PM
Error Loading OS after Linux install Matt alt.comp.hardware 3 08-23-2006 01:22 AM
Security fears over MS October patches... Imhotep alt.computer.security 31 10-23-2005 12:58 AM


All times are GMT. The time now is 10:19 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45