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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux