Iptables rules between subnets eth1 WLAN eth2 LAN

This is a discussion on Iptables rules between subnets eth1 WLAN eth2 LAN within the Linux Security forums, part of the System Security and Security Related category; I have 3 networkcards eth0,1,2 eth0=internet I want a rule between eth1 and eth2 eth1= wirelesslan eth2= ...


Go Back   Usenet Forums > System Security and Security Related > Linux Security

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-22-2004
Michel
 
Posts: n/a
Default Iptables rules between subnets eth1 WLAN eth2 LAN

I have 3 networkcards eth0,1,2
eth0=internet
I want a rule between eth1 and eth2
eth1= wirelesslan
eth2= servers Windows 2000, LAN
So the wireless lan users go only to tcp port 25,80,100,110,143,443 to
eth2
I think the firewall works whit first open and at last close
everything?


/etc/rc.d/rc.firewall.local
# Custom firewall rules.
# This file is executed by the firewall on stop/start/restart

WAP_IF="eth1" #nothing WLAN
INT_IF="eth2" # DMZ (LAN)

INT_LAN_IP=`ifconfig $INT_IF | grep inet | cut -d : -f 2 | cut -d \ -f
1 | cut -d . -f 1,2,3`
INT_LAN=$INT_LAN_IP.0/24

WAP_TCP_PORTS_LAN_ALLOWED="25,80,100,110,143,443"
#$IPTABLES -A FORWARD -i $WAP_IF -d $INT_LAN -p tcp -m multiport
--destination-ports $WAP_TCP_PORTS_LAN_ALLOWED -m state --state NEW -j
ACCEPT

$IPTABLES -A FORWARD -i $WAP_IF -d $INT_LAN -j DROP
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 02:18 AM.


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