Public IP without using NAT (ebtables)
"pevee" <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <001901c286f2$73fa5b30$60faa8c0@gpcalvin> |
Hi, I am trying to do the following:- (1) eth0 ------------------ eth0 (2) eth1------------------- eth0 (3) (1) Windows XP eth0 192.168.250.96 netmask 255.255.255.0 default gateway 192.168.250.254 (2) Linux (with ebtables) brctl addbr br0 brctl addif br0 eth0 brctl addif br0 eth1 ifconfig br0 0.0.0.0 up ifconfig eth0 192.168.18.11 netmask 255.255.255.0 up ifconfig eth1 192.168.250.57 netmask 255.255.255.0 up ebtables -t broute -A BROUTING -p ipv4 -i eth0 --ip-dst 192.168.18.11 -j ACCEPT ebtables -t broute -A BROUTING -p ipv4 -i eth1 --ip-dst 192.168.250.57 -j ACCEPT ebtables -t broute -A BROUTING -p arp -i eth0 -d $MAC_OF_ETH0 -j ACCEPT ebtables -t broute -A BROUTING -p arp -i eth1 -d $MAC_OF_ETH1 -j ACCEPT (3) Linux Gateway ifconfig eth1 192.168.250.254 netmask 255.255.255.0 up I want to ping 192.168.18.18 from 192.168.250.96, how can I do this? Can ebtables help me? Please advice, hope to hear from you all soon :) Warm regards, Calvin Kaiwen