LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ip-forwarding with NetworkManager ? (https://www.linuxquestions.org/questions/linux-software-2/ip-forwarding-with-networkmanager-4175610498/)

Mario Blunk 07-24-2017 12:25 PM

ip-forwarding with NetworkManager ?
 
Is there a way to do IP-forwarding with the NetworkManager ?

Shadow_7 07-24-2017 01:05 PM

There's a box you can check to enable that, although I've never had it work for me. Not that I've tried much with the GUI tool.

# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -t nat -A POSTROUTING -o enp1s0 -j MASQUERADE

Where the interface is the internet facing one. Is what normally works for me. Various cons of double nat and reduced MTU values for better responsiveness. But it works.

tshikose 07-24-2017 04:52 PM

Hi,

Normally NetworkManager is not directly linked to ip forwarding.
But generally comes along with firewalld package.
And firewalld does port forwarding.

In short: yes, you can do port forwarding with firewalld, using its command line firewall-cmd instead of iptables.


All times are GMT -5. The time now is 05:45 AM.