![]() |
The Perfect Xen 3.0 Setup For Debian - NAT problem
Hi Falko,
First, I wanna thank you for the great tutorial. The only problem I got, is that port forwarding from dom0 to vm01 is not working. I installed apache on vm01 and I did port forward on dom0, but I still cannot access to vm01 from the outside. Quote:
Quote:
Akil Mussá |
Quote:
Code:
ifconfigQuote:
|
Hi,
Code:
vm01:~# ifconfig |
Did you change /etc/xen/xend-config.sxp as described on http://www.howtoforge.com/perfect_setup_xen3_debian_p6 ?
What's the output of Code:
cat /proc/sys/net/ipv4/ip_forward |
Hi Falko,
Code:
root@cust131-43:amussa# cat /proc/sys/net/ipv4/ip_forwardCode:
#(network-script network-bridge) |
Looks ok. Was there any firewall running on dom0 when you inserted the iptables forward rules?
|
Hi,
Thanks for your patience. Here are my firewall rules: Code:
root@cust131-43:amussa# iptables -L -nv |
Please start dom0 without any firewall rules and then add your forwarding rules and test again.
|
I solved part of the problem.
Now I can access the vm01 http page from the outside if I use the same port (80). Code:
iptables -A PREROUTING -t nat -p tcp -i eth0 --dport 80 -j DNAT --to 10.0.0.1:80Code:
iptables -A PREROUTING -t nat -p tcp -i eth0 --dport 8080 -j DNAT --to 10.0.0.1:80Is there any problem with DNAT?? I read the netfilters tutorial and they say it is possible. Thanks for any help. |
Did you restart the system? Maybe your old firewall rule is conflicting with your new one.
|
| All times are GMT +2. The time now is 03:00. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.