I have a requirement that networking has to be managed by lxc container, so the Ethernet interface(eth0, which is the source of internet) is assigned to container.
I am able to ping "188.8.131.52" from the container.
To access the internet from host, created veth type network configuration for the container.
lxc.net.3.type = veth
lxc.net.3.flags = up
lxc.net.3.veth.pair = lxc0
lxc.net.3.hwaddr = 4a:49:43:49:79:bf
lxc.net.3.ipv4.address = 192.168.1.1/24 192.168.1.255
then forwarded the packets from eth1 to eth0 and eth0 to eth1 as mentioned in https://superuser.com/questions/938805/how-forward-packets-from-network-interface-to-another
but the "ping -I lxc0 184.108.40.206" is not working from the host.
tcpdump on eth1 interface(tcpdump -i eth1) shows that the ping request is received in the container.
tcpdump shows the output as
ARP, Request who-has 220.127.116.11 tell 192.168.1.2(192.168.1.2 is lxc0's ip in host)
eth0 is the default gateway inside the container.