Results 1 to 4 of 4

Thread: iptables --list

  1. #1

    iptables --list

    Why I cant see my iptables setting using --list option ?

    I have set this :

    iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 3000 -j DNAT --to 10.0.0.100:3000
    iptables -t nat -A PREROUTING -i ppp0 -p udp --dport 4000 -j DNAT --to 10.0.0.100:4000

    How to see current iptables rules that are running ?

    Thanks.

  2. #2
    Join Date
    Nov 2004
    Location
    India
    Posts
    1,100
    Use this :

    iptables -n -v --list
    AssistanZ - Beyond Boundaries...
    Cloudstack Consultancy / 24x7 Web Hosting Support / 24x7 Server Management / Infrastructure Management Services
    Web & Mobile Apps Development / Web Designing Services / Php, Grails, Java Development

  3. #3
    use this:

    iptables -L

  4. #4
    No, I cant see it using the above command.

    Finally, I can see it using iptables-save

    Strange, what does --list do !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •