ポート80のトラフィックをポート8080にリダイレクトするようにサーバーを設定しようとしましたが、機能しません。 (私がポート80にtelnetすれば "Connection refused"エラーが出て、firefoxには "Unable to connect"と表示されます)ポート80を8080にリダイレクトするためのnftableを取得できません
iptablesを使って動作させることはできましたが、誰が問題が何であるか考えていますか? (ケースでは、サーバはLinodeのが提供するカーネルと、linode.com上で実行されている、関連するのです。)
は私が/etc/nftables.confに、次の持っている:
#!/usr/sbin/nft -f
flush ruleset
table ip fw {
chain in {
type filter hook input priority 0;
# accept any localhost traffic
iif lo accept
# accept traffic originated from us
ct state established,related accept
# accept ssh, alternative http
tcp dport { ssh, http, http-alt } ct state new counter accept
counter drop
}
}
table ip nat {
chain prerouting {
type nat hook prerouting priority 0;
tcp dport http redirect to http-alt
}
chain postrouting {
type nat hook postrouting priority 0;
}
}