VMware trusted interface
I'm trying to set the virtual interface vmnet1 as a trusted interface so that guest and host can communicate with each other without a firewall.
Both guest and host are running CentOS 5.2 system-config-securitylevel-tui doesn't show vmnet1 as one of the interfaces so I can't just tick a box there. Does anyone know how to permanently set vmnet1 as a trusted interface on CentOS? I've tried these, but neither worked: Code:
iptables -A INPUT -i vmnet1 -j ACCEPT Code:
iptables -L |
Well, Linux can't "see" vmnet1 because that exists only in VMware. When you setup VMware you created a virtual network as well. You need to approach this as though you're connecting two different physical machines. Add the entries to your firewall config based on the IP address of the host and guest.
|
Once you explained it, it made perfect sense :-) Thanks a lot.
For anyone else with a similar problem, the command I had to use was: Code:
iptables -I RH-Firewall-1-INPUT 1 -s 192.168.16.0/24 -j ACCEPT After I ran that and made sure it works, I ran Code:
iptables-save > /etc/sysconfig/iptables |
All times are GMT -5. The time now is 09:33 AM. |