4
votes
Accepted
How to allow only one way traffic with wireguard
Given PC-s: A, B, C. A should be able to reach (ping, telnet, etc) B and C, B should be able to reach C, but not backwards.
That is not one-way traffic. To make a telnet connection, you have to send ...
1
vote
Accepted
What type of NAT does iptables MASQUERADE implement?
In the example of Symmetric NAT from the linked question:
echo "1" >/proc/sys/net/ipv4/ip_forward
iptables --flush
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE --random
iptables -...
1
vote
How to allow only one way traffic with wireguard
The solution based on grawity_u1686's insights:
Iptables:
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
11 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
iptables × 1926networking × 965
linux × 903
firewall × 333
routing × 232
vpn × 179
nat × 164
router × 161
openvpn × 142
ubuntu × 133
port-forwarding × 123
ssh × 93
debian × 81
wireless-networking × 61
centos × 59
wireguard × 55
dns × 54
proxy × 50
docker × 49
ip × 48
dd-wrt × 47
port × 43
raspberry-pi × 38
tcp × 37
security × 29