Linux Netfilter discussions
 help / color / mirror / Atom feed
* Routing problem...
@ 2004-07-27  7:23 Michelle Konzack
  2004-07-27  7:42 ` Sven Schuster
  0 siblings, 1 reply; 19+ messages in thread
From: Michelle Konzack @ 2004-07-27  7:23 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

*************************************************************************
* Do not Cc: me, because I am on THIS list, if I write here             *
* Keine Cc: am mich senden, bin auf DIESER Liste wenn ich hier schreibe *
*************************************************************************

Hello, 

I have 4 NICs in my Router and with two I have a problem:

eth0	-> public network with Servers
eth1    -> private network with Workstations.

I have following rules:

  ____ ( 'stdin' ) _____________________________________________________
 /
|  iptables -P INPUT ACCEPT
|  iptables -F INPUT 
|  iptables -P OUTPUT ACCEPT
|  iptables -F OUTPUT 
|  iptables -P FORWARD DROP
|  iptables -F FORWARD 
|  
|  iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

OK, I can SEND packages from my Workstations in eth1 
to the Servers in eth0

|  iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT

Here comes the Packages from the Servers back and 
I allow to come into my private Network

 \______________________________________________________________________

But if I execute the script, I get: 

iptables: No chain/target/match by that name

Whats wrong ?
I have compiled Linux with ALL netfilter modules in.

Greetings
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Routing problem
@ 2004-02-13 15:39 Carlos Fernandez Sanz
  2004-02-13 15:50 ` Antony Stone
  2004-02-13 16:53 ` John A. Sullivan III
  0 siblings, 2 replies; 19+ messages in thread
From: Carlos Fernandez Sanz @ 2004-02-13 15:39 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 1251 bytes --]

I have a small problem setting up a routing exception here.

We have a small LAN with NAT-based internet access. Nothing special here. 
The router is a Linux box, with two NICs. One of them has a private address. The other one has a WAN address (it's a requirement of our provider that we use this address even if we have public addresses). 

Anyway, one of our users needs to go out using a public IP, and NAT doesn't do, because he needs to establish a connection encrypted where the IP address is part of a signature.

We do have spare IPs. The problem is that I can't add a route to him, route returns "network is unreachable".

Suppose NIC A in the linux box (route) is 192.168.21.1. NIC B is our public IP 1 (of a pool of five) A.B.C.1. Everyone gets out using this IP and NAT.
Now I want someone in the LAN to own the public IP A.B.C.2, however he is connected to the internal switch. 
I tried to do this

route add A.B.C.2 gw A.B.C.2 dev eth0 

But I get "network unreachable".

Before you ask: I can't connect this special computer to the same place I connect the linux box (which would be the obvious solution) because the carrier expects traffic to come from one WAN IP, owned by the linux box. 

All suggestions welcome.

[-- Attachment #2: Type: text/html, Size: 2443 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* Routing problem
@ 2003-08-13 18:26 GG Noris
  0 siblings, 0 replies; 19+ messages in thread
From: GG Noris @ 2003-08-13 18:26 UTC (permalink / raw)
  To: netfilter

Hello.
I have a problem  in my network. i need to substitute my internet line
with 16 public ip with another line with other 16 ip.

my current functioning situation is:

1 lan 192.168.100.0/24
1 dmz	10.100.200.0/24
1 public zone 80.x.x.16/29

this 3 network are connected wit an iptables machine. fot lan i use nat
for navigate, for dmz i use port traslation to public my service in the
public zone.

all function well for 2 years.

now i need to change my public zone without loss of services.
my little brain have thinked to up another firewall box iptables and put
it with 1 nic in dmz to serve as new GW and another nic in the new
public zone. afther i public the same services with this new FW in the
new public zone. sure do not function... i have tryed but not.

in this new configuration the service from server1 smtp ( that have
always the old GW to goin out ) is functioning to the old public zone,
but when i contact the server1 smtp ftom the new public zone, my server
recive only SYN packet. but do not respond and the service smtp do not
function.

My problem is to find a solution for the migration.

my little brain.. tel me to put another nic an the old FW and use this
with 2 public zones and having only one PAT and NAT machine... is this
the solution or there is a good solution ???


THANX in adv. 

GG


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Routing Problem
@ 2002-09-20 14:29 Tom Fischer
  0 siblings, 0 replies; 19+ messages in thread
From: Tom Fischer @ 2002-09-20 14:29 UTC (permalink / raw)
  To: netfilter

Hi,

I have 2 Machines connected to the Internet via DSL. The first machine 
is the default gateway on all machines in the LAN. I've 2 Machines 
because i want to use the second as a fallback. But now i want to route 
a few services over the second machine, like E-Mail.

For testing i wanted to route a host over the second machine. I followed 
the Adv-Routing-HOWTO and placed:

iptables -I PREROUTING -i eth0 -t mangle -p tcp -s host -j MARK --set-mark 1
echo 201 test >> /etc/iproute2/rt_tables
ip rule add fwmark 1 table test
ip route add default via xxx.xxx.xxx.xxx dev eth2 table test

xxx.xxx.xxx.xxx is the IP of the second Machine connected to the first 
via a Crossover-Cable. This works fine, both machines can ping the other.

This setup didn't work. Did i miss something?

Hope anybody can help me out.

Regards, Tom

-- 
Tom Fischer			ABH Marketingservice GmbH
System Administrator		Weisshaustrasse 23a
Tel: 0221-94400446		50939 Koeln
http://www.abh.de




^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2004-07-28  8:32 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-27  7:23 Routing problem Michelle Konzack
2004-07-27  7:42 ` Sven Schuster
2004-07-27  8:06   ` Michelle Konzack
2004-07-27 14:21     ` Sven Schuster
2004-07-28  8:32       ` Michelle Konzack
  -- strict thread matches above, loose matches on Subject: below --
2004-02-13 15:39 Carlos Fernandez Sanz
2004-02-13 15:50 ` Antony Stone
2004-02-13 16:30   ` Carlos Fernandez Sanz
2004-02-13 17:12     ` Antony Stone
2004-02-14  8:41       ` Carlos Fernandez Sanz
2004-02-14  9:09         ` Antony Stone
2004-02-14 15:15           ` Carlos Fernandez Sanz
2004-02-14 15:19           ` Carlos Fernandez Sanz
2004-02-14 15:38             ` Antony Stone
2004-02-13 17:16     ` Scott MacKay
2004-02-14  8:47       ` Carlos Fernandez Sanz
2004-02-13 16:53 ` John A. Sullivan III
2003-08-13 18:26 GG Noris
2002-09-20 14:29 Routing Problem Tom Fischer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox