Activity Stream
48,167 MEMBERS
6945 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 5 of 5
  1.     
    #1
    Member
    Website's:
    coolsamhosting.com

    Smile Need Centos Iptables Help

    Hello guys,

    I have a customer and he needs a range of ports opened to his internal ip which in my case is 10.8.1.1

    Normally to forward one port i use this command:

    iptables -t nat -A PREROUTING -j DNAT -p tcp --dport 12000 --to 10.8.1.1:12000

    But if i need like range of ports opened like from 12000 to 22000 which command should i use?
    coolsam Reviewed by coolsam on . Need Centos Iptables Help Hello guys, I have a customer and he needs a range of ports opened to his internal ip which in my case is 10.8.1.1 Normally to forward one port i use this command: iptables -t nat -A PREROUTING -j DNAT -p tcp --dport 12000 --to 10.8.1.1:12000 But if i need like range of ports opened like from 12000 to 22000 which command should i use? Rating: 5

  2.   Sponsored Links

  3.     
    #2
    ψ(`∇?)ψ


  4.     
    #3
    Respected Member
    Try this
    iptables -t nat -A PREROUTING -j DNAT -p tcp --dport 12000:22000 --to 10.8.1.1:12000

  5.     
    #4
    Member
    Website's:
    coolsamhosting.com
    Thanks guys it worked very well now. Appreciate your help

  6.     
    #5
    Respected Member
    You are welcome.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Block DoS/DDoS attacks using IPTables in SSH
    By DXS in forum Tutorials and Guides
    Replies: 21
    Last Post: 27th May 2012, 03:20 PM
  2. Block ddos ip ? iptables dont works ?
    By devNULL in forum Technical and Security Tutorials
    Replies: 0
    Last Post: 3rd Apr 2012, 08:27 AM
  3. CentOS 5 = RDP?
    By ZeroAT in forum Server Management
    Replies: 6
    Last Post: 21st Feb 2011, 02:05 PM
  4. LVM Help (Centos)
    By sniper in forum Server Management
    Replies: 2
    Last Post: 27th Apr 2010, 06:20 PM

Tags for this Thread

BE SOCIAL