You are not logged in.

#1 2024-12-05 18:30:30

TGJ
Member
Registered: 2024-12-05
Posts: 2

Ssh -6 with vnc output

Hi I'm looking for some help.

I want to host an ipv6 server with sshd and get a output vlc in the secure ssh.
does someone know how to do ?

I tried some syntaxe but they didn't worked.

That is maybe because of my ip6table firewall so i give you the "code":

```
#! /bin/bash

# Clear
ip6tables -X
ip6tables -F

# Rules
ip6tables -A INPUT -p tcp --dport 22222 -m state --state ESTABLISHED -j ACCEPT
ip6tables -A INPUT -p tcp --dport 22222 -m state --state RELATED -j ACCEPT

# Chain
ip6tables -N INTO-P2
ip6tables -A INTO-P2 -m recent --name P1 --remove
ip6tables -A INTO-P2 -m recent --name P2 --set
ip6tables -A INTO-P2 -j LOG --log-prefix "INTO P2: "

ip6tables -N INTO-P3
ip6tables -A INTO-P3 -m recent --name P2 --remove
ip6tables -A INTO-P3 -m recent --name P3 --set
ip6tables -A INTO-P3 -j LOG --log-prefix "INTO P3: "

ip6tables -N INTO-P4
ip6tables -A INTO-P4 -m recent --name P3 --remove
ip6tables -A INTO-P4 -m recent --name P4 --set
ip6tables -A INTO-P4 -j LOG --log-prefix "INTO P4: "

ip6tables -A INPUT -m recent --update --name P1

# Secret Code
ip6tables -A INPUT -p tcp --dport <myPort> -m recent --name P1 --set
ip6tables -A INPUT -p tcp --dport <myPort> -m recent --rcheck --seconds 10 --name P1 -j INTO-P2
ip6tables -A INPUT -p tcp --dport <myPort> -m recent --rcheck --seconds 10 --name P2 -j INTO-P3
ip6tables -A INPUT -p tcp --dport <myPort> -m recent --rcheck --seconds 10 --name P3 -j INTO-P4

# OK
ip6tables -A INPUT -p tcp --dport 22222 -m recent --rcheck --seconds 10 --name P4 -j ACCEPT

# Default:drop
ip6tables -A INPUT -p tcp --dport 22222 -m state --state NEW -j DROP

```

Offline

#2 2024-12-06 09:00:42

-thc
Member
Registered: 2017-03-15
Posts: 1,144

Re: Ssh -6 with vnc output

Not sure where you're headed here.

For a successful VNC connection via SSH you need a SSH connection with active port redirection. Nothing in your post hints at problems with redirection.

Your ip6tables firewall script is a "port knocking" firewall that has nothing to to with VNC. You don't mention if SSH works at all.

Last edited by -thc (2024-12-06 09:00:58)

Offline

Board footer

Powered by FluxBB