Results 1 to 4 of 4

Thread: Iptables help .

  1. #1

    Iptables help .

    Hello ALL ,
    I have a server before in gnax.net then i had getting a flood attacks after that their support enter my server and make my iptables like that :-
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    acctboth all -- anywhere anywhere
    RH-Firewall-1-INPUT all -- anywhere anywhere

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    RH-Firewall-1-INPUT all -- anywhere anywhere

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    acctboth all -- anywhere anywhere

    Chain RH-Firewall-1-INPUT (2 references)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere
    ACCEPT all -- anywhere anywhere
    ACCEPT all -- anywhere anywhere
    ACCEPT icmp -- anywhere anywhere icmp any
    ACCEPT ipv6-crypt-- anywhere anywhere
    ACCEPT ipv6-auth-- anywhere anywhere
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT tcp -- anywhere anywhere state NEW tcp dptmtp
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
    ACCEPT tcp -- anywhere anywhere state NEW tcp dptsh
    REJECT all -- anywhere anywhere reject-with icmp-host-prohibited



    Now i have a new server i wanna to know how to make it like old one
    Best Regards
    5-Need

  2. #2
    Join Date
    Dec 2001
    Location
    NYC, NY
    Posts
    798
    you can use iptables-save > file

    then on the other server use iptables-restore

  3. #3
    Join Date
    May 2004
    Posts
    197
    The restore command will be iptables -restore < filename !!!
    Waxdoll
    Quite, Cool & Adjustable, But Dangerous
    I Love Microsoft

  4. #4
    Thanks you all ,
    But the old server RHE ES and the new Fedora Are it's good ?
    Regards

Posting Permissions

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