IPv6 to IPv4 Gateway - Raspberry Pi Forums
hello there,
amstruggeling network configuration of raspberry pi gateway, first of brief introduction trying do.
have several computers in private network , want access services on these machines on internet. unfortunately changed isp (to unitymedia, german isp) , have ds-lite-tunnel , ipv6 address. idea use ipv6 address access raspberry pi, forward request coresponding machine, 1 nas , netbook not support ipv6. expose raspberry pi internet, there option forward port range on router, want access pi too.
here lite grphic show whats going on.

quiet easy forward http , vnc requests right machine, forwarding ftp caused me headaches. not possible use sftp, end problems
, because nas not support feature.
how implemented forwarding?
secure raspberry pi using iptables based firewall, expose ports needed.
use socat forward each port like: ftp want that, dont know how specify it.
first tried 1 ftp server use port 20/21 on pi redirect, failed. result in filezilla is: if change ports on pi wanted it, same error , yes did force use of active mode in filezilla.
want acces first nas on pi port 120 , 121. second should accessible through 220 , 221.
nice if knows solution problem.
thank
.
amstruggeling network configuration of raspberry pi gateway, first of brief introduction trying do.
have several computers in private network , want access services on these machines on internet. unfortunately changed isp (to unitymedia, german isp) , have ds-lite-tunnel , ipv6 address. idea use ipv6 address access raspberry pi, forward request coresponding machine, 1 nas , netbook not support ipv6. expose raspberry pi internet, there option forward port range on router, want access pi too.
here lite grphic show whats going on.
quiet easy forward http , vnc requests right machine, forwarding ftp caused me headaches. not possible use sftp, end problems
how implemented forwarding?
secure raspberry pi using iptables based firewall, expose ports needed.
use socat forward each port like:
code: select all
socat tcp6-listen:180,fork tcp4:192.168.178.5:80 & socat tcp6-listen:15900,fork tcp4:192.168.178.3:5900 & first tried 1 ftp server use port 20/21 on pi redirect, failed.
code: select all
socat tcp6-listen:20,fork tcp4:192.168.178.5:20& socat tcp6-listen:21,fork tcp4:192.168.178.5:21& code: select all
befehl: type antwort: 200 switching binary mode. befehl: eprt |2|0:0:0:0:0:0:0:0|51717| antwort: 500 bad eprt protocol. befehl: epsv antwort: 229 entering extended passive mode (|||44034|). befehl: list fehler: die datenverbindung konnte nicht hergestellt werden: econnrefused - connection refused server want acces first nas on pi port 120 , 121. second should accessible through 220 , 221.
nice if knows solution problem.
thank
hello,
try following:
create firewall rule accept data packet @ choosen port:
sudo ip6tables -a input -p tcp -d aaaa:bbbb:cccc:dddd::eeee --dport 8181 -j accept
socat ipv6 choosen ipv4
sudo socat tcp6-listen:8181,fork,su=nobody tcp4:aaa.bbb.ccc.ddd:8181
acess via browser ipv6 (beacouse webserver):
http://[aaaa:bbbb:cccc:dddd::eeee]:8181/pda.htm
hope helps!
try following:
create firewall rule accept data packet @ choosen port:
sudo ip6tables -a input -p tcp -d aaaa:bbbb:cccc:dddd::eeee --dport 8181 -j accept
socat ipv6 choosen ipv4
sudo socat tcp6-listen:8181,fork,su=nobody tcp4:aaa.bbb.ccc.ddd:8181
acess via browser ipv6 (beacouse webserver):
http://[aaaa:bbbb:cccc:dddd::eeee]:8181/pda.htm
hope helps!
raspberrypi
Comments
Post a Comment