LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2005, 02:43 PM   #1
novic
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
iptables on ovislink WL1120AP


Hi, I have this AP in mode client. I want to redirect the requirements from internet to webserver, but I´m still doing something wrong...

IPTABLES:

#!/bin/sh

#zrusime bridge
ifconfig br0 down
brctl delbr br0

#nastavime interfaces a routes
ETH0=192.168.1.1
ETH0MASK=255.255.255.0
WLAN0=10.32.xxx.xxx
WLAN0MASK=255.255.255.xxx
DEFGW=10.32.139.xxx


ifconfig eth0 $ETH0 netmask $ETH0MASK
ifconfig eth0:1 192.168.100.252
ifconfig wlan0 $WLAN0 netmask $WLAN0MASK
route add default gw $DEFGW

#zacneme routovat
echo 1 > /proc/sys/net/ipv4/ip_forward

#firewall
iptables -F INPUT
iptables -A INPUT -s 192.168.100.254 -j ACCEPT
iptables -A INPUT -p tcp --dport 23 -j REJECT
iptables -A INPUT -i INET_IFACE -p TCP --dport 80 -j ACCEPT
iptables -t nat -F
iptables -S ALLOW_PORTS -m state --state NEW -p tcp --dport 80 -j ACCEPT
iptables -t nat -A PREROUTING -i eth0 -p tcp -d 62.240.xxx.xxx --dport 80 -j DNAT --to-destination 192.168.1.10:80
iptables -t nat -I POSTROUTING -s 192.168.1.0/24 -d ! 192.168.1.0/24 -j SNAT --to 10.32.xxx.xxx

#zapneme dhcpd
#touch /var/lib/misc/udhcpd.leases
#udhcpd
dhcpd eth0

#staticke arp
/etc/arp.conf
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Ovislink WL-5400PCI on Mandrake 10.0 neranjana Linux - Networking 1 09-20-2004 02:08 PM
Ovislink 8211 wireless pcmcia problems clement Linux - Hardware 0 12-27-2003 06:56 PM
OvisLink 56k Voice modem not found aizkorri Linux - Hardware 2 12-02-2003 06:12 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
RedHat and OvisLink SR-200 Router Sel1 Linux - Networking 1 11-15-2002 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration