My Ubuntu server has two interfaces.
1) Public - eth0
2) Internal - eth1
How can I forward web traffic (port 80) to nginx running on eth1 from Public interface eth0 ? I don't know exact ufw rules to complete this.
Thanks
My Ubuntu server has two interfaces.
1) Public - eth0
2) Internal - eth1
How can I forward web traffic (port 80) to nginx running on eth1 from Public interface eth0 ? I don't know exact ufw rules to complete this.
Thanks
ufw
will not solve your problem that will allow forwarding but it will not do forwarding . if you want to forward your traffic then you have to writeNAT
rule that will forward your traffic that comes on public ip to private ip.If you want to allow forwarding from particular network to another network then you can use like:
or
If you want to forward all network request then you can use like
It will show like :
For more info you can see