All of lore.kernel.org
 help / color / mirror / Atom feed
* SV: [LARTC] Packet rewriting
@ 2000-10-25 14:42 Daniel
  2000-10-25 16:34 ` Daniel
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel @ 2000-10-25 14:42 UTC (permalink / raw)
  To: lartc

<PRE>I'm not sure of what you want but here is an example:
(Assuming local net is 10.0.0.160/27)

# Accept icmp (for example ping)
ipchains -A output -p icmp -j ACCEPT

# Deny TCP sessions to local network (that is noone outside
# the firewall may access web, ftp,... at your local net)
# (Note the -y option)
ipchains -A output -p tcp -d 10.0.0.160/27 -y -j DENY

# Accept any TCP packets to local network
ipchains -A output -p tcp -d 10.0.0.160/27 -j ACCEPT

# Maybe you want some UDP ports open
# Accept port 4000/UDP to local network
ipchains -A output -p udp -d 10.0.0.160/27 4000 -j ACCEPT

# Deny anything else to local network
ipchains -A output -d 10.0.0.160/27 -j DENY

Regards,
Daniel

&gt;<i> -----Ursprungligt meddelande-----
</I>&gt;<i> Från: <A HREF="mailto:lartc-admin@mailman.ds9a.nl">lartc-admin@mailman.ds9a.nl</A>
</I>&gt;<i> [mailto:<A HREF="mailto:lartc-admin@mailman.ds9a.nl">lartc-admin@mailman.ds9a.nl</A>]För Fredrik Rambris
</I>&gt;<i> Skickat: Wednesday, October 25, 2000 3:31 PM
</I>&gt;<i> Till: Linux Advanced Routing and Trafic Control
</I>&gt;<i> Ämne: [LARTC] Packet rewriting
</I>&gt;<i>
</I>&gt;<i>
</I>&gt;<i> Hello
</I>&gt;<i>
</I>&gt;<i> Now here's a problem I've never thought of before.
</I>&gt;<i>
</I>&gt;<i> We have been given a net from UUNET. The first IP-address (.161) is used
</I>&gt;<i> by their router (which we have no access to fiddle with). I have
</I>&gt;<i> installed a firewall at .162 which will serve both as firewall and
</I>&gt;<i> trafic controller. My question is how to I make the public IP-addresses
</I>&gt;<i> accessible from the outside and still be located behind the firewall?
</I>&gt;<i> Like this
</I>&gt;<i>
</I>&gt;<i> [Internet]--[UU-Router.161]--[Firewall.162]
</I>&gt;<i> I want to be able to put a machine behind the firewall on a public
</I>&gt;<i> IP-adress (.163) but still protected by the firewall. I was told that
</I>&gt;<i> this could be done in other firewalls by aliasing the NIC on the outside
</I>&gt;<i> to all public ip-addresses and then have the firewall forward these
</I>&gt;<i> packets to a computer on the inside. Like portforwarding but a whole
</I>&gt;<i> machine (all ports) on all protocols (under IP ofcause) (not blocked by
</I>&gt;<i> the firewall).
</I>&gt;<i>
</I>&gt;<i> Is this possible with ipchains and some fancy packetrewriting?
</I>&gt;<i>
</I>&gt;<i> Anyone have any tips?
</I>&gt;<i> --
</I>&gt;<i> Admera Solution Provider AB
</I>&gt;<i> Tel: 0733-850 814
</I>&gt;<i> Position: 55°36´13N  13°03´36E
</I>


</PRE>

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

end of thread, other threads:[~2000-10-25 16:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-10-25 14:42 SV: [LARTC] Packet rewriting Daniel
2000-10-25 16:34 ` Daniel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.