[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] eth0 problems
From: |
Joe Menola |
Subject: |
Re: [Qemu-devel] eth0 problems |
Date: |
Sat, 28 Aug 2004 21:53:02 -0500 |
User-agent: |
KMail/1.7 |
On Sat August 28 2004 7:55 pm, Lonnie Cumberland wrote:
> I just looked at the kernel sources for my 2.6.3-7mdk kernel and
> TUN/TAP has already been compiled in as a module.
>
> Although there is no /dev/net/tun0 listed or /dev/tun0 as well
/dev/net/tun0 wont exist until module "tun" is loaded.
If you wish to setup a tun device, I've created a small and raw howto for my
own use on what works for me. Should give you a decent start...
>>>>>>
First off, kernel needs tun networking support compiled in and module loaded.
"eth0" =host device connected to lan
"/etc/rc.d/init.d" = path to init scripts
adjust as needed
Setup Masquerade
Run in terminal as root:
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
#/etc/rc.d/init.d/iptables save
Sanity check
#/etc/rc.d/init.d/iptables start
#/etc/rc.d/init.d/iptables status
Rule "Chain POSTROUTING (policy ACCEPT)"
should contain:
"MASQUERADE all -- anywhere anywhere"
Create Ifup scripts
1- Create file: /etc/qemu-ifup
#!/bin/sh
sudo /sbin/ifconfig $1 <ip address>
sudo /etc/qemu-iptables
#end
2- #chmod 777 /etc/qemu-ifup
3- Create file /etc/qemu-iptables
#!/bin/sh
/etc/rc.d/init.d/iptables stop
echo "1" >&/proc/sys/net/ipv4/ip_forward
/etc/rc.d/init.d/iptables start
#/usr/sbin/dhcpd -q tun0
#end
4- #chmod 777 /etc/qemu-iptables
<<<<<<<<<<
- [Qemu-devel] eth0 problems, Lonnie Cumberland, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Joe Menola, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Lonnie Cumberland, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Joe Menola, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Jim C. Brown, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Joe Menola, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Jim C. Brown, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Lonnie Cumberland, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Mark Williamson, 2004/08/28
- Re: [Qemu-devel] eth0 problems,
Joe Menola <=
- Re: [Qemu-devel] eth0 problems, Lonnie Cumberland, 2004/08/28
- Re: [Qemu-devel] eth0 problems, Joe Menola, 2004/08/29