ipnatadm -> iptables

Michal Semler semler.michal na globe.cz
Čtvrtek Srpen 23 14:06:34 CEST 2001


  dobry den,
  resim takovy problem.
  potrebuji prepsat do iptables tuto cast v nasem fw skriptu. A nevim jak na
  to. Poradi nekdo?


  ipnatadm -I -i -S 10.0.0.0/8 -D 10.0.0.0/8 -s

  pro jistotu pripojuji i ipnatadm -h



  fw:~# ipnatadm -h
  ipnatadm 0.6, 1997/06/27

  Usage:  ipnatadm -I command [options] (input NAT)
          ipnatadm -O command [options] (output NAT)
          ipnatadm -F flush all rules
          ipnatadm -h (print this help information))

  Commands:
   -i    insert rule
    -a    append to rule
    -d    delete rule
    -l    list all rules of this category

  Options:
    -Y id (number)
    -P protocol (either tcp, udp, icmp, or all)
    -S address[/mask] [port ...]  (source specification)
    -D address[/mask] [port ...]  (destination specification)
    -M address[/mask] [port] (new src-address and/or port)
    -N address[/mask] [port] (new dst-address and/or port)
    -V address (network interface address)
    -W name    (network interface name)
    -X [roro|byte|conn] (virtual server rule)
    -w weight (number)
    -t timeout (in seconds)
    -b    bidirectional match
    -s    skip NAT (don't translate matching packets)
    -n    numeric output of addresses and ports
    -o    turn on kernel logging for matching packets
    -v    verbose mode

  Dekuji predem

  Michal

-- 
Michal Semler
Systemovy administrator

kontakt:

Globe Internet s.r.o.; http://globe.cz
Umisteni a telefon:
http://mapa.globe.cz


Další informace o konferenci Linux