Results 1 to 5 of 5
-
26th Oct 2012, 04:48 PM #1OPMemberWebsite's:
coolsamhosting.comNeed 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
-
26th Oct 2012, 04:54 PM #2ψ(`∇?)ψ
tcp --dport 12000:22000
http://www.cyberciti.biz/tips/linux-...1-to-6889.html
-
26th Oct 2012, 04:59 PM #3Respected Member
Try this
iptables -t nat -A PREROUTING -j DNAT -p tcp --dport 12000:22000 --to 10.8.1.1:12000
-
26th Oct 2012, 06:37 PM #4OPMemberWebsite's:
coolsamhosting.comThanks guys it worked very well now. Appreciate your help
-
27th Oct 2012, 01:49 PM #5Respected Member
You are welcome.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Block DoS/DDoS attacks using IPTables in SSH
By DXS in forum Tutorials and GuidesReplies: 21Last Post: 27th May 2012, 03:20 PM -
Block ddos ip ? iptables dont works ?
By devNULL in forum Technical and Security TutorialsReplies: 0Last Post: 3rd Apr 2012, 08:27 AM -
CentOS 5 = RDP?
By ZeroAT in forum Server ManagementReplies: 6Last Post: 21st Feb 2011, 02:05 PM -
LVM Help (Centos)
By sniper in forum Server ManagementReplies: 2Last Post: 27th Apr 2010, 06:20 PM
themaLeecher - leech and manage...
Version 4.94 released. Open older version (or...