IPFW - ipv6 Forward

Status
Not open for further replies.

andi3030

Cadet
Joined
Jul 24, 2018
Messages
8
Hello,
first sry for my bad English :/ .
upload_2018-7-24_18-20-19.gif


I have a Problem i search in this and other Forums but i dont found a helpfull Information.

I have a Server with FreeNAS and on this i have a VM with Docker.

My Provider give me only a IPv6 Adresse. But i want Connect to my server from IPv6 and IPv4 for this i buy on Feste-ip.net a DS-Lite Portmapper from ipv4 on ipv6 and ddns service.
The DDNS i install on FreeNAS System to get the ipv6 form the server and make a domain like this : "13e122e.domain.com:50001" ... the ports i have :50001 go to Freenass, and i have 1 Port to the Docker on this i have a mailserver with port 50002 now i want join from "13e122e.domain.com:50001" to the Freenas and with ipfw forward the port to a Dockerhost(VM) on Port 50002.

But i dont know what is the rigth Command.
For Example my
Freenas: ipv6 = Home::1 Globaladdr. -- ipv4 = 192.168.0.254:50001
Docker(WM): ipv6 = Home::2 Globaladdr. -- ipv4 = 192.168.0.253:50002
But know i dont know what i must do
the Feste-ip Service do a ipv4 connection this there server from there a ipv6 to my server thats mean that i must know forward the incomming traffic on Freenas IP with IPFW to the Docker(VM) on port 50002.

My TO-DO;
First Enable Firewall
/etc/rc.conf -------------
firewall_enable="YES"
firewall_script="/etc/rc.firewall.local"

/etc/rc.firewall.local -------------

ipfw flush
IPF="ipfw -q add"

$IPF 10 fwd Home::2,50002 all from any to Home::1 50002 in
or can i make this on this point with ipv4 addresses?

Please help me what is my mistake.

Again sry for my bad english
upload_2018-7-24_18-20-19.gif

and thanks for help
 
Status
Not open for further replies.
Top