Re: Newbie question about NAT and forwarding

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 07, 2006 at 03:37:33AM +0200, Pascal Hambourg wrote:
> felix@xxxxxxxxxxx a ?crit :
> >
> >I've used table names with iptables commands in my shell scripts, but
> >I didn't know this /etc/iproute2 directory existed.
> 
> Huh ? AFAIK, iptables commands do not use routing tables. Can you give 
> an example ?

I am showing my newbie status.  Maybe I meant chain names?  Here is a
snippet I use to enable and disable ssh, with SSH being a table?chain?
name I can use in another script:

iptables -N SSH
iptables -A SSH -j LOG --log-prefix 'IPT: SSH: '
iptables -A SSH -j ACCEPT
iptables -A INPUT-TCP -p TCP -m multiport --dports ssh -j SSH

I knew I didn't know a lot about iptables -- it looks like I knew even
less than I thought!

-- 
            ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
     Felix Finch: scarecrow repairman & rocket surgeon / felix@xxxxxxxxxxx
  GPG = E987 4493 C860 246C 3B1E  6477 7838 76E9 182E 8151 ITAR license #4933
I've found a solution to Fermat's Last Theorem but I see I've run out of room o


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux