Networking Forums

Networking Forums > Computer Networking > Linux Networking > iptables and redirection

Reply
Thread Tools Display Modes

iptables and redirection

 
 
Brian Andrus
Guest
Posts: n/a

 
      08-10-2003, 03:33 AM
Ok, I have a chain in my IP tables:
*nat
-A PREROUTING -j DNAT --to-destination 10.1.1.21

This is meant to have any system that is connected on the internal
network and tries to go out to the internet get redirected. It works
very well.

What I want to add, though, is to allow a small handful of systems to
bypass that chain and not get their packets redirected to the internal
server. How would I go about this?

Brian Andrus
(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Timo Voipio
Guest
Posts: n/a

 
      08-10-2003, 02:46 PM
Brian Andrus wrote:

> Ok, I have a chain in my IP tables:
> *nat
> -A PREROUTING -j DNAT --to-destination 10.1.1.21


> What I want to add, though, is to allow a small handful of systems to
> bypass that chain and not get their packets redirected to the internal
> server. How would I go about this?


-I PREROUTING -s 1.2.3.4 -j ACCEPT. The chain is traversed to the first rule
where the packet matches a rule that has target ACCEPT, REJECT or DROP. If
accept, it is then passed on to the next chain (in this case INPUT or FORWARD).

HTH,

-Timo

--
Timo Voipio | Helsinki, Finland | ICBM at: 60 11.800 N 024 52.760 E
GeekCode ver 3: GU>CC d s-: a--- C++ UL(+)$>+++$ P+>+++ L++(+) E- W++ N++
o? K? w O M- V- PS PE Y+ PGP+ t 5++ X R tv- b++(++++) DI+ D G e- h! r !y
Remove +newsharvested to e-mail me | Poista +newsharvested jos meilaat

 
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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables port redirection problem horvatj Linux Networking 1 01-09-2007 12:50 PM
iptables port redirection problem horvatj Linux Networking 0 01-09-2007 12:24 PM
ias or rras redirection topdawg44 Wireless Networks 0 08-15-2006 02:34 AM
iptables port redirection Luke Robertson Linux Networking 3 01-06-2005 09:25 PM
Redirection based on URL Eric Linux Networking 1 11-24-2004 10:38 AM



1 2 3 4 5 6 7 8 9 10 11