Tunneled ssh session not working with iptables rule to reject all other input traffic other than the required one

Solution Verified - Updated -

Issue

  • I am accessing vnc over tunneled ssh session using below document

How to connect securely to VNC via tunnel over SSH ?

  • I have configured iptables rule to DROP all the connections after allowing required traffic

    cat /etc/sysconfig/iptables
    ...
    rules to allow required INPUT packets
    ...
    -A INPUT -j DROP
    ...

  • VNC over ssh tunnel is accessed on localhost, still I am not able to connect it when DROP ALL rule is in place.

Environment

  • Red Hat enterprise Linux (All versions)
  • vnc over ssh tunnel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content