[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Complex networking scenario
On Thu, Nov 22, 2012 at 11:28 AM, paul@xxxxxxxxxxxxxxxxxxxx <paul@xxxxxxxxxxxxxxxxxxxx> wrote:
I think it's going to look something like this. I put my rules in a script so I can do multiple things. You didn't say if your eth0 was on a bridge or not so I'll give you my setup for xenbr0 (company network) and xenbr1 (VM network) and you can play with it. I'm forwarding port 80 to an internal VM. Since I don't have time to rewrite it for your setup I'd suggest replacing my xenbr0 with eth0. Â You should only then need to worry about your data receiver. I'd write more but it's Thanksgiving...
#!/bin/sh echo "1" > /proc/sys/net/ipv4/ip_forward iptables -F iptables -t nat -F  iptables -t nat  Â-A POSTROUTING -o xenbr0 -j MASQUERADE
iptables -t filter -A FORWARD -i xenbr0 -o xenbr1 -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -t filter -A FORWARD -i xenbr1 -o xenbr0 -j ACCEPT iptables -t filter -A INPUT -i xenbr1 -j ACCEPT
### Port Forwarding ### iptables -t nat -A PREROUTING -p tcp -i xenbr0 --dport 80 Â-j DNAT --to 192.168.0.100:80Â Grant McWilliams http://grantmcwilliams.com/ Some people, when confronted with a problem, think "I know, I'll use Windows."Â Now they have two problems. _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |