[Wylug-help] Re: simple iptables rule

Gary Stainburn gary.stainburn at ringways.co.uk
Tue Feb 15 19:09:19 GMT 2005


On Tuesday 15 February 2005 4:51 pm, lee at leeevans.org wrote:
> hi,
>
> very simply:
>
> iptables -A INPUT -i eth1 -s your.ip.address.here -j ACCEPT
> iptables -A INPUT -i eth1 -j DROP
>
>
> lee

Hi Lee

The commands ran without errors but I was unable to connect to the host.
Tomorrow I'll get someone to plug the cable back in and try again.

Gary

>
> Gary Stainburn writes:
> > Hi folks.
> >
> > I've got a RH7.3+errata box with eth1 visible to the internet. eth0
> > is internal.
> >
> > What do I need to put where so that iptables limits access to eth1
> > to 1 specifc IP address while not affecting eth0 at all.
> >
> > Cheers
> >
> > Gary
> > --
> > Gary Stainburn
> >
> > This email does not contain private or confidential material as it
> > may be snooped on by interested government parties for unknown
> > and undisclosed purposes - Regulation of Investigatory Powers Act,
> > 2000
> >
> >
> > _______________________________________________
> > Wylug-help mailing list
> > Wylug-help at wylug.org.uk
> > http://list.wylug.org.uk/mailman/listinfo/wylug-help

--
Gary Stainburn

This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000





More information about the Wylug-help mailing list