Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-30-2016, 04:23 AM   #1
Registered: Jan 2006
Location: Sri Lanka
Posts: 610

Rep: Reputation: 34
allow port 22 to any destination

Hi I am trying to forwared port 22 from x.x.x.x to any destination via y.y.y.y but does not work

-A POSTROUTING -s x.x.x.x -p tcp --dport 22 -j SNAT --to-source y.y.y.y

I am using Redhat 5.4 on 64bit and an iptables firewall as a internal to internet router/firewall

Thanks and Regards
Old 08-30-2016, 05:14 AM   #2
Registered: Jan 2006
Location: Sri Lanka
Posts: 610

Original Poster
Rep: Reputation: 34
I am sorry, above rule work, sorry for the inconvenience

Thanks and best Regards


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to limit bandwidth per destination ip and port? paulus89 Linux - Newbie 3 12-05-2014 06:49 AM
what is outgoing/outbound connection source port & destination port ? linuxcenter Linux - Newbie 2 06-25-2013 06:00 AM
Routing based on destination port rvo Linux - Networking 9 01-11-2011 10:48 AM
change port using destination alaios Linux - Networking 3 03-01-2005 05:06 AM
--destination-ports port[,port[,port...]] KevinGuy Linux - Networking 1 03-16-2004 07:06 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:07 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration