hi i have recently set up a raspberry pi to be a network bridge for my router to my room as i thought it would be quicker to do than wait for the delivery of a plug in network adapter in this lock down.
this has proved fairly easy and i have connected the pi wirelessly to my router on the wlan0 interface which ive set on my routers DHCP settings to have a static ip of 192.168.0.50. using some iptables edits on the pi this is being forwarded to the eth0 interface (static ip of 192.168.2.1) on my pi with my PC connected to it via Ethernet and normal data is moving fine over the connection.
I now want to connect my pc to a vpn and have been struggling with it ive installed the openvpn client on my pi and can connect the pi to it fine however the internet connection to my pc subsequently cant load websites .
I assume this is to do with the tun0 interface that the vpn creates and ive had a go at adding new rules to my ip tables so that it will forward the data but haven't found a working solution any help would be hugely appreciated as im really quite shit at networking and only have basic knowledge. =)
idk if this helps but this is a current overview of my iptables setup
Chain INPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination 299K 409M ACCEPT all -- wlan0 eth0 0.0.0.0/00.0.0.0/0state RELATED,ESTABLISHED 169K 14M ACCEPT all -- eth0 wlan0 0.0.0.0/00.0.0.0/0 Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes) pkts bytes target prot opt in out source destination