Re: Local binding port for SSH client?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jorge Fábregas wrote:
On Tuesday 02 September 2008 05:00:32 pm Kevin J. Cummings wrote:
Are you looking for a way to control which outgoing port ssh uses?

Yes, this is what I want. For example, on a remote ACL you may have your filters based on:

- destination ip
- destination port
- source ip

I was thinking I could add "source port" to that list..but then , on the client side, I'd have to specify local binding port.

Irrespectively of its security merits I'm just curious if it's possible at all (with ssh or any other net tool).

If you want to learn a little about iptables you can just do SNAT to control the IP and port.
  iptables -A POSTROUTING -t nat -p tcp -d 1.2.3.4 --dport ssh \
  -j SNAT --to-source 4.3.2.1:24702

That is, if the destination IP is 1.2.3.4 and the destination port is ssh (22), change the source IP to 4.3.2.1 port 24702

Requires static IP.

--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux