Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions how to use this feature for VyOS #1

Open
sever-sever opened this issue Aug 5, 2024 · 6 comments
Open

Add instructions how to use this feature for VyOS #1

sever-sever opened this issue Aug 5, 2024 · 6 comments

Comments

@sever-sever
Copy link

sever-sever commented Aug 5, 2024

It would be a good idea to add instructions on how to use it for VyOS.
Does it work if we install packages into the installed system, or should those packages be added to the /packages during a build?
What to do after installation?
Which modules have to be loaded and which nft commands are available with this feature?

@sever-sever sever-sever changed the title Add instructions how to use this feature Add instructions how to use this feature for VyOS Aug 5, 2024
@debiansid
Copy link
Owner

You can add them when you build iso or install them after your installation.

@sever-sever
Copy link
Author

You can add them when you build iso or install them after your installation.

@debiansid Any docs about configuring the feature?
Thanks!

@debiansid
Copy link
Owner

@debiansid
Copy link
Owner

When I was using iptables I add this into  vyos-postconfig-bootup.script

##############################################
# FULLCONENAT Rules
iptables-legacy -t nat -I POSTROUTING -o pppoe0 -j F
ULLCONENAT
iptables-legacy -t nat -I PREROUTING -i pppoe0 -j FU
LLCONENAT
iptables-legacy -t nat -I PREROUTING -i eth0 -j FULL
CONENAT

@debiansid
Copy link
Owner

nftables like this

gw:/etc/nftables.d$ more fw4.nft
table inet fw4
delete table inet fw4

        table inet fw4 {
        chain dstnat {
                type nat hook prerouting priority dstnat; policy accept;
                iifname "ppp0" jump dstnat_wan
        }

        chain srcnat {
                type nat hook postrouting priority srcnat; policy accept;
                oifname "ppp0" jump srcnat_wan
        }

        chain srcnat_wan {
                fullcone
        }

        chain dstnat_wan {
                fullcone
        }
}

@debiansid
Copy link
Owner

You can add them when you build iso or install them after your installation.

@debiansid Any docs about configuring the feature? Thanks!

Remember to patch your kernel like mine https://github.com/ruaue/vyos-kernel-rolling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants