ok, here are my interfaces:
Code:
eth0 Link encap:Ethernet HWaddr a6:11:44:77:f0:0f
inet6 addr: fe80::a411:44ff:fe77:f00f/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:3 dropped:0 overruns:0 frame:0
TX packets:3 errors:3 dropped:0 overruns:0 carrier:3
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:238 (238.0 B)
Interrupt:21 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1184 (1.1 KiB) TX bytes:1184 (1.1 KiB)
mon.wlan0 Link encap:UNSPEC HWaddr 00-26-5A-0A-94-A6-02-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2256 (2.2 KiB) TX bytes:0 (0.0 B)
ppp0 Link encap:Point-to-Point Protocol
inet addr:10.114.171.245 P-t-P:10.64.64.64 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:124 (124.0 B) TX bytes:148 (148.0 B)
wlan0 Link encap:Ethernet HWaddr 00:26:5a:0a:94:a6
inet addr:192.168.37.1 Bcast:192.168.37.255 Mask:255.255.255.0
inet6 addr: fe80::226:5aff:fe0a:94a6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:94 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9970 (9.7 KiB) TX bytes:15931 (15.5 KiB)
wmaster0 Link encap:UNSPEC HWaddr 00-26-5A-0A-94-A6-02-00-00-00-00-00-00-00-00-00
UP RUNNING MTU:0 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0: Ethernet (actualy i get an ip with dhcp)
lo: loopback
mon.wlan0, wlan0, wmaster0: These are wireless interfaces. I don't do something with them. i only defined a static ip for wlan0 (for the wireless-router). with this interfaces i create a wireless network (with hostapd).
ppp0: my interface to the internet (umts-modem)
i use some code to make it possible to route the traffic:
Code:
...
iptables -F
iptables -X
# here i would like to define that ppp0 can't open connections from outside. but this is another problem
...
# Define the routing (ok, i copied the code)
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
...
# Allow ip-forwarding
echo "1" > /proc/sys/net/ipv4/ip_forward
...
i wanna make with this a normally wireless-router. a normal wireless-router has only one ip (like 192.168.1.1). but if i give eth0 the ip 192.168.37.1 it doesn't work. ok, i think it's stupid to give two interfaces the same ip. can i make one interface "transparent"?
best regards toredo